diff options
author | Max Wu | 2017-06-14 12:12:28 +0800 |
---|---|---|
committer | GitHub | 2017-06-14 12:12:28 +0800 |
commit | a645f28b33405327645b1d04016c6cb74ee4a34b (patch) | |
tree | e05ba23c9f7e8b576f1454fa15a018e9334409a9 /public/js | |
parent | 3b8f4bc1a256733361e29be16a48e39d41f7c420 (diff) |
Fix slide mode might hide scrollbar on some linux
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/slide.js | 4 |
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') |