post-hover.js: hover only in thread and index pages

This commit is contained in:
Zankaria 2024-08-21 23:32:17 +02:00
parent 8477f41b52
commit 06ef3c5287

View file

@ -18,7 +18,7 @@
* any-hover or css media queries may return false negatives. * any-hover or css media queries may return false negatives.
* Handle it by checking if the query is explicitly NOT supported. * 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 () { $(document).ready(function () {
let isScreenSmall = false let isScreenSmall = false
/* /*