question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

callback Nw.Win.open return null

See original GitHub issue

Hi,

When I do nw.Window.open with an external URL like below, the callback parameter is “undefined” but Window opens.

nw.Window.open('https://github.com', {}, function(new_win) {
   //new_win => undefined
});

Is that normal ?

I use NWJS v14.2 with Windows 7

Thank you in advance for your help

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rogerwangcommented, May 2, 2016

I see. It’s easy to reproduce with devtools opening. Previously I was testing it with an automated case. Will fix it today. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Window - NW.js Documentation
This function returns a Window object via the callback. You can use any properties and methods of Window except the events.
Read more >
Window.open() - Web APIs | MDN
open () returns, the window always contains about:blank . The actual fetching of the URL is deferred and starts after the current script...
Read more >
JavaScript window.open returns null sometimes - Stack Overflow
When I execute this (in Chrome, at least), it does pop up the window and put the report in it. However, breakpoints in...
Read more >
Window - NW.js Documentation - Read the Docs
Close the devtools window. win.getPrinters(callback). Enumerate the printers in the system. The callback function will receive an array of JSON objects for the ......
Read more >
Externals - webpack
... to a commonjs module using the request path return callback(null, ... The external is a global variable called `nameOfGlobal`. callback(null, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found