From e549bd91bcb3440f7c7cff09c5b2ae53f95b719a Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Sat, 10 Aug 2024 12:56:58 +0300 Subject: [PATCH] Update point_editor.js --- web/js/point_editor.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/js/point_editor.js b/web/js/point_editor.js index e062166..f02a48b 100644 --- a/web/js/point_editor.js +++ b/web/js/point_editor.js @@ -194,7 +194,11 @@ app.registerExtension({ element.appendChild(this.pointsEditor.parentEl); chainCallback(this, "onConfigure", function () { - this.editor = new PointsEditor(this); + try { + this.editor = new PointsEditor(this); + } catch (error) { + console.error("An error occurred while configuring the editor:", error); + } }); chainCallback(this, "onExecuted", function (message) { let bg_image = message["bg_image"];