@biela.dev/core 1.7.11 → 1.7.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/lite.cjs +13 -4
- package/dist/lite.cjs.map +1 -1
- package/dist/lite.js +13 -4
- package/dist/lite.js.map +1 -1
- package/package.json +2 -2
package/dist/lite.js
CHANGED
|
@@ -1420,11 +1420,20 @@ var CustomSVGStore = class {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
1422
|
persist(all) {
|
|
1423
|
-
if (!this.storage) return;
|
|
1424
1423
|
const json = JSON.stringify(all);
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1424
|
+
if (this.storage) {
|
|
1425
|
+
try {
|
|
1426
|
+
this.storage.setItem(SVG_OVERRIDES_KEY, json);
|
|
1427
|
+
} catch {
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
if (typeof fetch !== "undefined") {
|
|
1431
|
+
fetch("/api/storage/svg-overrides", {
|
|
1432
|
+
method: "PUT",
|
|
1433
|
+
headers: { "Content-Type": "application/json" },
|
|
1434
|
+
body: json
|
|
1435
|
+
}).catch(() => {
|
|
1436
|
+
});
|
|
1428
1437
|
}
|
|
1429
1438
|
}
|
|
1430
1439
|
};
|