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() {