Fixes
This commit is contained in:
parent
6e0f27f254
commit
c54915e940
5 changed files with 14 additions and 3 deletions
|
|
@ -11,14 +11,18 @@
|
|||
}
|
||||
}
|
||||
|
||||
console.log("cookie theme=", theme);
|
||||
|
||||
if (theme !== "default") {
|
||||
var cur = document.getElementById("usertheme");
|
||||
cur.parentNode.removeChild(cur);
|
||||
console.log('removed');
|
||||
var css = document.createElement("link");
|
||||
css.setAttribute("rel", "stylesheet");
|
||||
css.setAttribute("type", "text/css");
|
||||
css.setAttribute("href", theme);
|
||||
css.setAttribute("id", "usertheme");
|
||||
document.head.appendChild(css);
|
||||
console.log(css);
|
||||
}
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue