fix price and modular
This commit is contained in:
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user