Closed ales-tsurko closed 7 years ago
get nw object from window object.
const nw = window.nw;
nw.Window.open('https://github.com');
or
changed to global object.
update nw-react-scripts@^0.2.3
.
nw.Window.open('https://github.com'); // direct
thanks.
Thanks!
Hi! Sorry for a dumb question, but how do you use NW.js API (or capture the browser's context)? I'm trying to open a popup with
nw.Window.open()
in theindex.js
, but getting'nw' is not defined
.