forked from leftypol/leftypol
post-hover.js: hover only in thread and index pages
This commit is contained in:
parent
8477f41b52
commit
06ef3c5287
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue