소스 검색

make sure remotes works without notes plugin being loaded #607

Hakim El Hattab 11 년 전
부모
커밋
a3f10e0b0f
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      plugin/remotes/remotes.js

+ 3 - 3
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(); })