Merge pull request #127 from iuyiuy/upstream_issue_93

Fix for issue #93 - svgEditorReady event is not triggered in an iframe.
This commit is contained in:
Jeff Schiller
2016-11-11 08:50:30 -08:00
committed by GitHub

View File

@@ -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');