Open
Description
NWJS Version : 0.30.1
Operating System : Windows 7/10 64 bits
Expected behavior
When providing an icon in nw.Window.open() you expect the window to have an icon and no error message is displayed in console.
Actual behavior
Window is open with the icon (ie icon property is working properly) but at least since version 0.30.1 (and probably 0.30.0) nwjs display this error message in console :
Failed to load resource: net::ERR_FAILED chrome-extension://invalid/:1
How to reproduce
-
package.json:
{
"main": "main.js",
"name": "nw-demo",
"window": {
"title": "node-webkit demo"
}
} -
main.js :
nw.Window.open('http://www.google.com', { width: 1024, height: 768, icon: './icon.png' } ,w => w. showDevTools()); -
put some png named icon.png in same path as nwjs
-
Launch nwjs and see error message in console