Skip to content

Commit 83b771b

Browse files
committed
fix: use globalThis for event listeners in connectionObservable
1 parent 1118758 commit 83b771b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/observables/src/dom/window.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { fromEvent, merge, of, map, shareReplay } from 'rxjs';
22

33
export const connectionObservable = merge(
44
of(null),
5-
fromEvent(global, 'online'),
6-
fromEvent(global, 'offline')
5+
fromEvent(globalThis, 'online'),
6+
fromEvent(globalThis, 'offline')
77
).pipe(
88
map(() => navigator.onLine),
99
shareReplay(1)

0 commit comments

Comments
 (0)