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
I run the following code in the console, and get an Uncaught Error: No current window
nw.Window.get().on('new-win-policy',function(frame,url,policy){// do not open the windowpolicy.ignore();// and open it in external browsernw.Shell.openExternal(url);});
The text was updated successfully, but these errors were encountered:
Hi, sorry for the spurious issue. I had forgotten that the app I was working on silently destroys the main window, and creates a replacement on startup, as part of extension compatibility.
NWJS Version : 0.45.4
Operating System : win64
Expected behavior
Links that request to be opened in a new window will open a browser
Actual behavior
White window, with nothing in it. Works fine if I disable NW2, so #7230 gets a mention
How to reproduce
http://docs.nwjs.io/en/latest/References/Window/#event-new-win-policy-frame-url-policy
I run the following code in the console, and get an Uncaught Error: No current window
The text was updated successfully, but these errors were encountered: