Skip to content

Commit 9edc517

Browse files
committed
fix: compatible with node v25.2
1 parent cd11630 commit 9edc517

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)