diff options
author | Renard | 2019-04-08 15:23:51 -0400 |
---|---|---|
committer | Renard | 2019-04-08 15:23:51 -0400 |
commit | ffd231adec6c75271d5cfca032f9e3680c62670d (patch) | |
tree | f4fac389771b2636542eb2b9cfd68a205ad34123 | |
parent | c2ecfed16c1d9f6c984c5e9956c0e27ebbd1725b (diff) | |
download | weabot-ffd231adec6c75271d5cfca032f9e3680c62670d.tar.gz weabot-ffd231adec6c75271d5cfca032f9e3680c62670d.tar.xz weabot-ffd231adec6c75271d5cfca032f9e3680c62670d.zip |
Shobon: Fix botón de configuración
El botón no se generaba si la extensión se deshabilitaba.
-rw-r--r-- | static/js/shobon.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/static/js/shobon.js b/static/js/shobon.js index 4b56aae..b9e265c 100644 --- a/static/js/shobon.js +++ b/static/js/shobon.js @@ -5,9 +5,6 @@ var hide_id = new Set(); var shobon_ver = "v0.4+"; function shobon() { - if(localStorage.getItem("shobon_on") == "false") return; - else console.log("Running shobon " + shobon_ver); - boardName = document.getElementsByName("board")[0].value; var inThread = document.getElementsByTagName("body")[0].className == "threadpage"; var newRepliesCounter = 0; @@ -23,6 +20,9 @@ function shobon() { box.appendChild(slnk); } + if(localStorage.getItem("shobon_on") == "false") return; + else console.log("Running shobon " + shobon_ver); + if (localStorage.getItem("shobon_usefilters") != "false") { loadFilters(); } |