- Fix (Embedded editor): Ensure origins can match by extracting origin out of base path
This commit is contained in:
@@ -75,7 +75,7 @@ const iframe = $(`<iframe src="${frameBase}${framePath}` +
|
|||||||
'" width="900px" height="600px" id="svgedit""></iframe>'
|
'" width="900px" height="600px" id="svgedit""></iframe>'
|
||||||
);
|
);
|
||||||
iframe[0].addEventListener('load', function () {
|
iframe[0].addEventListener('load', function () {
|
||||||
svgCanvas = new EmbeddedSVGEdit(frame, [frameBase]);
|
svgCanvas = new EmbeddedSVGEdit(frame, [new URL(frameBase).origin]);
|
||||||
// Hide main button, as we will be controlling new, load, save, etc. from the host document
|
// Hide main button, as we will be controlling new, load, save, etc. from the host document
|
||||||
let doc;
|
let doc;
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user