diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2013-09-14 11:11:48 -0400 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2013-09-14 11:12:21 -0400 |
commit | a3f10e0b0fd056937962f016e2ae68ee138409bc (patch) | |
tree | d7a9e8648e050cedf7b5b11c2fc503a93366505c /plugin | |
parent | 041a525a3cc4f3ddf291b7f0b0e72eb57b6b65f2 (diff) | |
download | fosdem-2018-presentation-a3f10e0b0fd056937962f016e2ae68ee138409bc.tar fosdem-2018-presentation-a3f10e0b0fd056937962f016e2ae68ee138409bc.tar.gz |
make sure remotes works without notes plugin being loaded #607
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/remotes/remotes.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/remotes/remotes.js b/plugin/remotes/remotes.js index 694e9c0..294c2b5 100644 --- a/plugin/remotes/remotes.js +++ b/plugin/remotes/remotes.js @@ -17,11 +17,11 @@ * Detects if notes are enable and the current page is opened inside an /iframe * this prevents loading Remotes.io several times */ - var remotesAndIsNotes = (function(){ - return !(window.RevealNotes && self == top); + var isNotesAndIframe = (function(){ + return window.RevealNotes && !(self == top); })(); - if(!hasTouch && !remotesAndIsNotes){ + if(!hasTouch && !isNotesAndIframe){ head.ready( 'remotes.ne.min.js', function() { new Remotes("preview") .on("swipe-left", function(e){ Reveal.right(); }) |