only apply theme if parameters are correct
This commit is contained in:
parent
f32bd8c946
commit
5bc7c92e71
@ -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
|
||||
|
Reference in New Issue
Block a user