Skip to content

Commit 03b2e92

Browse files
author
ozrg
authored
fix: reference to global in browser environment (#2408)
1 parent 1cb7eb8 commit 03b2e92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/box/Box.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const Box = ({
99
}) => {
1010
return (
1111
<section className={className} style={{ background: '#fbfbfb', ...style }}>
12-
<ErrorBoundary resetKeys={[global.location.pathname]}>
12+
<ErrorBoundary resetKeys={[globalThis.location?.pathname || '']}>
1313
{children}
1414
</ErrorBoundary>
1515
</section>

0 commit comments

Comments
 (0)