Fix slide mode might hide scrollbar on some linux

This commit is contained in:
Max Wu 2017-06-14 12:12:28 +08:00 committed by GitHub
parent 3b8f4bc1a2
commit a645f28b33
1 changed files with 2 additions and 2 deletions

View File

@ -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')