diff --git a/src/api/Api.js b/src/api/Api.js index 2fade539e..e8aa9580b 100644 --- a/src/api/Api.js +++ b/src/api/Api.js @@ -963,9 +963,13 @@ export default class Project extends EventEmitter { onConfirm: () => { this.emit("project-published"); hideDialog(); + if (screenshotUrl) { + URL.revokeObjectURL(screenshotUrl); + } } }); - } finally { + } catch (ex) { + console.error(ex); if (screenshotUrl) { URL.revokeObjectURL(screenshotUrl); }