From b79f84fff613afbc293cbd44b4b30d85af3254db Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Thu, 28 Jul 2022 03:53:18 +0200 Subject: [PATCH] fix screen detection --- assets/js/papermod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/papermod.js b/assets/js/papermod.js index 8151373f..96883de9 100644 --- a/assets/js/papermod.js +++ b/assets/js/papermod.js @@ -107,7 +107,7 @@ function showCodeCopyButtons() { function openToc() { var toc = document.getElementById("toc"); - if (toc && window.screen.width > 1500 && window.screen.height > 800) { + if (toc && window.innerWidth > 1500 && window.innerHeight > 800) { toc.open = true; } }