fix screen detection

This commit is contained in:
Wonderfall committed 2022-07-28 03:53:18 +02:00
1 parent d0734456ca
commit b79f84fff6
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}
}