aboutsummaryrefslogtreecommitdiff
path: root/js/slide-controller.js
diff options
context:
space:
mode:
authorEric Bidelman2012-07-11 10:43:37 -0700
committerEric Bidelman2012-07-11 10:43:37 -0700
commitf208307cbdd403d3fa92a1aae1dc9c094c7ec9d8 (patch)
treeeb8ac9966f182313db6b11e12c2f4fd5bab070b7 /js/slide-controller.js
parentd78d1c5069ecdb6723a8933dbb86f4b7a20c59e9 (diff)
downloadio-slides-remote-f208307cbdd403d3fa92a1aae1dc9c094c7ec9d8.tar.gz
Bringing in upstream changes
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 }