Skip to content

Commit

Permalink
fix screen detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Wonderfall committed Jul 28, 2022
1 parent d073445 commit b79f84f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/papermod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit b79f84f

Please sign in to comment.