From d0348ddf4e199cc4a99a0f0a8f9e9d720c8705d2 Mon Sep 17 00:00:00 2001 From: cuixiping Date: Tue, 7 Jan 2020 18:14:05 +0800 Subject: [PATCH] Fix: fix the default src of empty iframe to avoid loading index page --- editor/embedapi-dom.js | 2 +- editor/extensions/ext-imagelib.js | 2 +- editor/extensions/ext-server_moinsave.js | 2 +- editor/extensions/ext-server_opensave.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/editor/embedapi-dom.js b/editor/embedapi-dom.js index 36a6c5a3..e4a3d51e 100644 --- a/editor/embedapi-dom.js +++ b/editor/embedapi-dom.js @@ -93,7 +93,7 @@ function exportPDF () { const frameBase = 'https://raw.githack.com/SVG-Edit/svgedit/master'; // const frameBase = 'http://localhost:8001'; const framePath = '/editor/xdomain-svg-editor-es.html?extensions=ext-xdomain-messaging.js'; -const iframe = $(''); +const iframe = $(''); iframe[0].src = frameBase + framePath + (location.href.includes('?') // ? location.href.replace(/\?(?.*)$/, '&$') diff --git a/editor/extensions/ext-imagelib.js b/editor/extensions/ext-imagelib.js index 773d0818..87a9f875 100644 --- a/editor/extensions/ext-imagelib.js +++ b/editor/extensions/ext-imagelib.js @@ -381,7 +381,7 @@ export default { const allLibs = imagelibStrings.select_lib; const libOpts = $('
    ').appendTo(browser); - const frame = $('