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

Merge branch 'master' of https://github.com/ainformatico/reveal.js into dev

parents 00b19779 87894e55
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,15 @@ ...@@ -13,7 +13,15 @@
return ('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch; return ('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch;
})(); })();
if(!hasTouch){ /**
* 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);
})();
if(!hasTouch && !remotesAndIsNotes){
head.ready( 'remotes.ne.min.js', function() { head.ready( 'remotes.ne.min.js', function() {
new Remotes("preview") new Remotes("preview")
.on("swipe-left", function(e){ Reveal.right(); }) .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