Skip to content

Commit ba7a03f

Browse files
authored
fix: compatible with node v25.2 (#1006)
1 parent 2dd439b commit ba7a03f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/devtools-kit/src/core/timeline/storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function addTimelineLayersStateToStorage(state: Record<string, boolean |
1010
}
1111

1212
export function getTimelineLayersStateFromStorage() {
13-
if (!isBrowser || typeof localStorage === 'undefined' || localStorage === null) {
13+
if (typeof window === 'undefined' || !isBrowser || typeof localStorage === 'undefined' || localStorage === null) {
1414
return {
1515
recordingState: false,
1616
mouseEventEnabled: false,

0 commit comments

Comments
 (0)