@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.cjs
CHANGED
|
@@ -1422,11 +1422,20 @@ var CustomSVGStore = class {
|
|
|
1422
1422
|
}
|
|
1423
1423
|
}
|
|
1424
1424
|
persist(all) {
|
|
1425
|
-
if (!this.storage) return;
|
|
1426
1425
|
const json = JSON.stringify(all);
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1426
|
+
if (this.storage) {
|
|
1427
|
+
try {
|
|
1428
|
+
this.storage.setItem(SVG_OVERRIDES_KEY, json);
|
|
1429
|
+
} catch {
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
if (typeof fetch !== "undefined") {
|
|
1433
|
+
fetch("/api/storage/svg-overrides", {
|
|
1434
|
+
method: "PUT",
|
|
1435
|
+
headers: { "Content-Type": "application/json" },
|
|
1436
|
+
body: json
|
|
1437
|
+
}).catch(() => {
|
|
1438
|
+
});
|
|
1430
1439
|
}
|
|
1431
1440
|
}
|
|
1432
1441
|
};
|