Skip to content

Commit d559826

Browse files
authored
bug: fix Uncaught ReferenceError: global is not defined
2 parents 58c854c + ebc3127 commit d559826

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/nova-helpers/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { fromScript } from 'hypernova';
33
export const DATA_KEY = 'hypernova-key';
44
export const DATA_ID = 'hypernova-id';
55

6-
const { document } = global;
6+
const { document } = globalThis;
77

88
export const findNode = (name, id) => {
99
const key = name.replace(/\W/g, '');

0 commit comments

Comments
 (0)