only apply theme if parameters are correct
This commit is contained in:
@@ -36,7 +36,7 @@ function get_storage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function enable_theme(prefix, name) {
|
function enable_theme(prefix, name) {
|
||||||
|
if (prefix && name) {
|
||||||
var theme = document.getElementById("current_theme");
|
var theme = document.getElementById("current_theme");
|
||||||
if (theme) {
|
if (theme) {
|
||||||
theme.href = prefix + "static/"+ name + ".css";
|
theme.href = prefix + "static/"+ name + ".css";
|
||||||
@@ -44,6 +44,7 @@ function enable_theme(prefix, name) {
|
|||||||
st.nntpchan_prefix = prefix;
|
st.nntpchan_prefix = prefix;
|
||||||
st.nntpchan_theme = name;
|
st.nntpchan_theme = name;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
|
|||||||
Reference in New Issue
Block a user