Archived
1
0

ammend theme changing

This commit is contained in:
Jeff Becker
2016-03-07 20:25:29 -05:00
parent 63e2614983
commit 39dbe314d6
8 changed files with 7 additions and 14 deletions

View File

@@ -29,12 +29,6 @@ function enable_theme(prefix, name) {
var theme = document.getElementById("current_theme");
if (theme) {
theme.remove();
}
if (name) {
var style = document.createElement("style");
style.setAttribute("id", "current_theme");
style.innerHTML='@import("'+prefix+"static/"+name+'.css")';
document.head.appendChild(style);
theme.href = prefix + "static/"+ name + ".css";
}
}