Fixed bug in Editor.loadFromURL where the promise was not resolving (#1040)
This commit is contained in:
committed by
GitHub
parent
f4a66c989c
commit
5c05fd77bc
@@ -1353,7 +1353,7 @@ class Editor extends EditorStartup {
|
|||||||
})
|
})
|
||||||
.then((str) => {
|
.then((str) => {
|
||||||
this.loadSvgString(str, { noAlert })
|
this.loadSvgString(str, { noAlert })
|
||||||
return str
|
resolve(str)
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
if (noAlert) {
|
if (noAlert) {
|
||||||
|
|||||||
Reference in New Issue
Block a user