diff --git a/packages/svgcanvas/core/svg-exec.js b/packages/svgcanvas/core/svg-exec.js
index b74134f8..e22f9774 100644
--- a/packages/svgcanvas/core/svg-exec.js
+++ b/packages/svgcanvas/core/svg-exec.js
@@ -896,7 +896,7 @@ const rasterExport = async (imgType, quality, WindowName, opts = {}) => {
WindowName
}
if (!opts.avoidEvent) {
- svgCanvas.call('ed', obj)
+ svgCanvas.call('exported', obj)
}
resolve(obj)
}
diff --git a/src/editor/Editor.js b/src/editor/Editor.js
index 0d64b102..cc314893 100644
--- a/src/editor/Editor.js
+++ b/src/editor/Editor.js
@@ -28,7 +28,7 @@ import LayersPanel from './panels/LayersPanel.js'
import MainMenu from './MainMenu.js'
import { getParentsUntil } from '@svgedit/svgcanvas/common/util.js'
-const { $id, $click, decode64, blankPageObjectURL } = SvgCanvas
+const { $id, $click, decode64 } = SvgCanvas
/**
*
@@ -295,9 +295,7 @@ class Editor extends EditorStartup {
*/
exportHandler (win, data) {
const { issues, exportWindowName } = data
-
- this.exportWindow = window.open(blankPageObjectURL || '', exportWindowName) // A hack to get the window via JSON-able name without opening a new one
-
+ this.exportWindow = window.open('', exportWindowName) // A hack to get the window via JSON-able name without opening a new one
if (!this.exportWindow || this.exportWindow.closed) {
seAlert(this.i18next.t('notification.popupWindowBlocked'))
return
@@ -319,7 +317,6 @@ class Editor extends EditorStartup {
pre +
issues.join(pre)
}
-
// Note that this will also prevent the notice even though new issues may appear later.
// May want to find a way to deal with that without annoying the user
this.configObj.pref('export_notice_done', 'all')
diff --git a/src/editor/MainMenu.js b/src/editor/MainMenu.js
index 91ab09f7..2eeef52b 100644
--- a/src/editor/MainMenu.js
+++ b/src/editor/MainMenu.js
@@ -129,35 +129,11 @@ class MainMenu {
* @returns {void}
*/
const openExportWindow = () => {
- const loadingImage = this.editor.i18next.t('notification.loadingImage')
if (this.editor.configObj.curConfig.exportWindowType === 'new') {
this.editor.exportWindowCt++
}
this.editor.exportWindowName =
this.editor.configObj.curConfig.canvasName + this.editor.exportWindowCt
- let popHTML; let popURL
- if (this.editor.loadingURL) {
- popURL = this.editor.loadingURL
- } else {
- popHTML = `
-