Skip to content

Commit 4b1ff8e

Browse files
committed
fixup: navigator object replace
1 parent c3beea7 commit 4b1ff8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compass-components/src/hooks/use-hotkeys.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('use-hotkeys', function () {
9797

9898
context('on Windows/Linux', function () {
9999
before(function () {
100-
Object.defineProperty(window.navigator, 'userAgent', {
100+
Object.defineProperty(navigator, 'userAgent', {
101101
value:
102102
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36',
103103
writable: true,

0 commit comments

Comments
 (0)