From f0b278762bc6dfc9c9f23194431f752286a2fa10 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Mon, 14 Oct 2013 00:29:42 +0000 Subject: [PATCH] WebAppFind potential file: protocol support git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2588 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/extensions/ext-webappfind.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/extensions/ext-webappfind.js b/editor/extensions/ext-webappfind.js index cce8a5ca..3b3405e5 100644 --- a/editor/extensions/ext-webappfind.js +++ b/editor/extensions/ext-webappfind.js @@ -40,7 +40,7 @@ window.addEventListener('message', function(e) { } }, false); -window.postMessage([readMessage], window.location.origin); +window.postMessage([readMessage], window.location.origin !== 'null' ? window.location.origin : '*'); // Avoid "null" string error for file: protocol (even though file protocol not currently supported by add-on) svgEditor.addExtension('WebAppFind', function() {