fix price and modular

This commit is contained in:
2026-02-01 17:38:39 +03:30
parent 55f34aa15d
commit 164542d3e2
801 changed files with 16129 additions and 14478 deletions
+2 -2
View File
@@ -2351,7 +2351,7 @@ function addTimelineLayersStateToStorage(state) {
localStorage.setItem(TIMELINE_LAYERS_STATE_STORAGE_ID, JSON.stringify(state));
}
function getTimelineLayersStateFromStorage() {
if (!import_devtools_shared4.isBrowser || typeof localStorage === "undefined" || localStorage === null) {
if (typeof window === "undefined" || !import_devtools_shared4.isBrowser || typeof localStorage === "undefined" || localStorage === null) {
return {
recordingState: false,
mouseEventEnabled: false,
@@ -2361,7 +2361,7 @@ function getTimelineLayersStateFromStorage() {
selected: ""
};
}
const state = localStorage.getItem(TIMELINE_LAYERS_STATE_STORAGE_ID);
const state = typeof localStorage.getItem !== "undefined" ? localStorage.getItem(TIMELINE_LAYERS_STATE_STORAGE_ID) : null;
return state ? JSON.parse(state) : {
recordingState: false,
mouseEventEnabled: false,