diff --git a/index.html b/index.html
index 8306184e..a9435f1c 100644
--- a/index.html
+++ b/index.html
@@ -7939,16 +7939,16 @@
-
+
-
+
-
-
-
+
+
+
-
+
@@ -7983,13 +7983,13 @@
-
+
-
+
-
+
diff --git a/modules/io/load.js b/modules/io/load.js
index c4d062ee..928339fd 100644
--- a/modules/io/load.js
+++ b/modules/io/load.js
@@ -456,7 +456,7 @@ async function parseLoadedData(data) {
{
// dynamically import and run auto-update script
const versionNumber = parseFloat(params[0]);
- const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=1.93.00");
+ const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=1.94.00");
resolveVersionConflicts(versionNumber);
}
diff --git a/modules/ui/stylePresets.js b/modules/ui/stylePresets.js
index a0780283..460b713d 100644
--- a/modules/ui/stylePresets.js
+++ b/modules/ui/stylePresets.js
@@ -62,15 +62,12 @@ async function getStylePreset(desiredPreset) {
}
async function fetchSystemPreset(preset) {
- const style = await fetch(`./styles/${preset}.json`)
- .then(res => res.json())
- .catch(err => {
- ERROR && console.error("Error on loading style preset", preset, err);
- return null;
- });
-
- if (!style) throw new Error("Cannot fetch style preset", preset);
- return style;
+ try {
+ const res = await fetch(`./styles/${preset}.json`);
+ return await res.json();
+ } catch (err) {
+ throw new Error("Cannot fetch style preset", preset);
+ }
}
function applyStyle(style) {