From 06ef3c52872e3bf6dfa6e71c3329c3c1fcc124d7 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Wed, 21 Aug 2024 23:32:17 +0200 Subject: [PATCH] post-hover.js: hover only in thread and index pages --- js/post-hover.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/post-hover.js b/js/post-hover.js index e5da909f..a9baed9e 100644 --- a/js/post-hover.js +++ b/js/post-hover.js @@ -18,7 +18,7 @@ * any-hover or css media queries may return false negatives. * Handle it by checking if the query is explicitly NOT supported. */ -if (!window.matchMedia('(any-hover: none)').matches) { +if ((active_page === 'thread' || active_page === 'index') && !window.matchMedia('(any-hover: none)').matches) { $(document).ready(function () { let isScreenSmall = false /*