Skip to content

Commit

Permalink
make sure remotes works without notes plugin being loaded hakimel#607
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Sep 14, 2013
1 parent 041a525 commit a3f10e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/remotes/remotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(); })
Expand Down

0 comments on commit a3f10e0

Please sign in to comment.