summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorMax Wu2017-06-14 12:12:28 +0800
committerGitHub2017-06-14 12:12:28 +0800
commita645f28b33405327645b1d04016c6cb74ee4a34b (patch)
treee05ba23c9f7e8b576f1454fa15a018e9334409a9 /public
parent3b8f4bc1a256733361e29be16a48e39d41f7c420 (diff)
Fix slide mode might hide scrollbar on some linux
Diffstat (limited to '')
-rw-r--r--public/js/slide.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/slide.js b/public/js/slide.js
index 9dfda65b..293ebfe2 100644
--- a/public/js/slide.js
+++ b/public/js/slide.js
@@ -132,6 +132,6 @@ Reveal.addEventListener('ready', event => {
})
Reveal.addEventListener('slidechanged', renderSlide)
-const isMacLike = !!navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i)
+const isWinLike = navigator.platform.indexOf('Win') > -1
-if (!isMacLike) $('.container').addClass('hidescrollbar')
+if (isWinLike) $('.container').addClass('hidescrollbar')