From f208307cbdd403d3fa92a1aae1dc9c094c7ec9d8 Mon Sep 17 00:00:00 2001 From: Eric Bidelman Date: Wed, 11 Jul 2012 10:43:37 -0700 Subject: Bringing in upstream changes --- js/slide-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/slide-controller.js') 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) { // Restrict messages to being from this origin. Allow local developmet // from file:// though. // TODO: It would be dope if FF implemented location.origin! - if (e.origin != ORIGIN_ && ORIGIN_ != 'file://') { + if (e.origin != ORIGIN_ && ORIGIN_.indexOf('file://') != 0) { alert('Someone tried to postMessage from an unknown origin'); return; } -- cgit v1.2.3