mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2025-08-11 08:10:07 -04:00
fix screen detection
This commit is contained in:
parent
d0734456ca
commit
b79f84fff6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue