aboutsummaryrefslogtreecommitdiff
path: root/js/slide-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/slide-controller.js')
-rw-r--r--js/slide-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/slide-controller.js b/js/slide-controller.js
index 84388a9..571317b 100644
--- a/js/slide-controller.js
+++ b/js/slide-controller.js
@@ -72,7 +72,7 @@ SlideController.prototype.onMessage_ = function(e) {
72 // Restrict messages to being from this origin. Allow local developmet 72 // Restrict messages to being from this origin. Allow local developmet
73 // from file:// though. 73 // from file:// though.
74 // TODO: It would be dope if FF implemented location.origin! 74 // TODO: It would be dope if FF implemented location.origin!
75 if (e.origin != ORIGIN_ && ORIGIN_ != 'file://') { 75 if (e.origin != ORIGIN_ && ORIGIN_.indexOf('file://') != 0) {
76 alert('Someone tried to postMessage from an unknown origin'); 76 alert('Someone tried to postMessage from an unknown origin');
77 return; 77 return;
78 } 78 }