From a645f28b33405327645b1d04016c6cb74ee4a34b Mon Sep 17 00:00:00 2001 From: Max Wu Date: Wed, 14 Jun 2017 12:12:28 +0800 Subject: [PATCH] Fix slide mode might hide scrollbar on some linux --- public/js/slide.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/slide.js b/public/js/slide.js index 9dfda65b1..293ebfe23 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')