You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the example code I get
/home//node_modules/dialogs/index.js:18
'.url': opt.hostname || window.location.hostname
^
ReferenceError: window is not defined
If I run the same code in RunKit it suggests:
Use global instead of window.
RunKit is a node environment, so window and other browser features won’t exist. If you’re just trying to access the global object, you can simply use global instead.
The text was updated successfully, but these errors were encountered:
When running the example code I get
/home//node_modules/dialogs/index.js:18
'.url': opt.hostname || window.location.hostname
^
ReferenceError: window is not defined
If I run the same code in RunKit it suggests:
Use global instead of window.
RunKit is a node environment, so window and other browser features won’t exist. If you’re just trying to access the global object, you can simply use global instead.
The text was updated successfully, but these errors were encountered: