From a3f10e0b0fd056937962f016e2ae68ee138409bc Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Sat, 14 Sep 2013 11:11:48 -0400 Subject: [PATCH] make sure remotes works without notes plugin being loaded #607 --- plugin/remotes/remotes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/remotes/remotes.js b/plugin/remotes/remotes.js index 694e9c04..294c2b56 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(); })