Archived
1
0

only apply theme if parameters are correct

This commit is contained in:
Jeff Becker 2016-03-08 20:35:03 -05:00
parent f32bd8c946
commit 5bc7c92e71
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -36,7 +36,7 @@ function get_storage() {
}
function enable_theme(prefix, name) {
if (prefix && name) {
var theme = document.getElementById("current_theme");
if (theme) {
theme.href = prefix + "static/"+ name + ".css";
@ -45,6 +45,7 @@ function enable_theme(prefix, name) {
st.nntpchan_theme = name;
}
}
}
function main() {
// do other initialization here