mirror of https://github.com/status-im/codimd.git
Fix slide mode might hide scrollbar on some linux
This commit is contained in:
parent
3b8f4bc1a2
commit
a645f28b33
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue