dialogs icon indicating copy to clipboard operation
dialogs copied to clipboard

ReferenceError: window is not defined

Open kieranshanley opened this issue 5 years ago • 0 comments

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.

kieranshanley avatar Jun 30 '20 01:06 kieranshanley