mirror of
https://github.com/0dayCTF/reverse-shell-generator.git
synced 2025-01-22 10:38:48 +00:00
Bug fixes
This commit is contained in:
parent
fb4d01bd48
commit
12ce1def9d
@ -22,11 +22,12 @@ window.addEventListener("load", function () {
|
|||||||
function initTheme() {
|
function initTheme() {
|
||||||
var currentTheme = localStorage.getItem("currentTheme");
|
var currentTheme = localStorage.getItem("currentTheme");
|
||||||
|
|
||||||
if (currentTheme === null) {
|
if (currentTheme == null) {
|
||||||
console.log("null")
|
|
||||||
document.body.removeAttribute("data-theme")
|
document.body.removeAttribute("data-theme")
|
||||||
} else {
|
} else {
|
||||||
|
console.log("there")
|
||||||
document.body.setAttribute("data-theme", currentTheme)
|
document.body.setAttribute("data-theme", currentTheme)
|
||||||
|
$("#theme-selector").val(currentTheme).change();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user