diff --git a/src/editor/svgedit.js b/src/editor/svgedit.js index 742ba63e..f9bd9033 100644 --- a/src/editor/svgedit.js +++ b/src/editor/svgedit.js @@ -1071,10 +1071,10 @@ class Editor extends EditorStartup { * @fires module:svgcanvas.SvgCanvas#event:ext_onNewDocument * @returns {void} */ - clickClear () { + async clickClear () { const [x, y] = this.configObj.curConfig.dimensions; - const ok = seConfirm(this.uiStrings.notification.QwantToClear); - if (!ok) { + const ok = await seConfirm(this.uiStrings.notification.QwantToClear); + if (ok === 'Cancel') { return; } this.leftPanelHandlers.clickSelect();