Skip to content
Snippets Groups Projects
Commit a3f10e0b authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

make sure remotes works without notes plugin being loaded #607

parent 041a525a
No related branches found
No related tags found
No related merge requests found
......@@ -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(); })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment