diff options
Diffstat (limited to 'static/js/autorefresh.js')
-rw-r--r-- | static/js/autorefresh.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/autorefresh.js b/static/js/autorefresh.js index 31cecbf..3f9dbd4 100644 --- a/static/js/autorefresh.js +++ b/static/js/autorefresh.js @@ -120,7 +120,7 @@ function counter() { } function detectService() { - if (document.body.className === "threadpage") { + if (document.body.classList.contains("threadpage")) { if (!document.getElementById("n")) return; thread_title = document.title; thread_length = parseInt(document.getElementsByClassName("thread")[0].dataset.length); |