reveal.js/plugin/remotes/remotes.js in reveal-ck-0.1.7 vs reveal.js/plugin/remotes/remotes.js in reveal-ck-0.1.8

- old
+ new

@@ -15,14 +15,14 @@ /** * 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(); }) .on("swipe-right", function(e){ Reveal.left(); }) .on("swipe-up", function(e){ Reveal.down(); }) \ No newline at end of file