From f9b7ae97e5226dbe12aac05966c12536bae955a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KB=20J=C3=B8rgensen?= Date: Mon, 1 Aug 2016 09:48:00 +0200 Subject: [PATCH] Also trigger the svgEditorReady event when opened through an iframe. --- editor/svg-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index c70df219..1a23ff02 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -798,7 +798,7 @@ TODOS (function() { // let the opener know SVG Edit is ready (now that config is set up) var svgEditorReadyEvent, - w = window.opener; + w = window.opener || window.parent; if (w) { try { svgEditorReadyEvent = w.document.createEvent('Event');