I am using NWJS to create a desktop app. The package.json file determines the settings. This works fine, but only in the distribution version.
{
"name": "My NWJS project",
"main": "index.html",
"window": {
"title": "Testing NWJS",
"kiosk": false,
"toolbar": true,
"frame": true,
"no-edit-menu":false
}
}
Now I want to debug with F12 (browser inspector), so I have to use the SDK version of NWJS. Problem: This SDK version ignores the package.json file. NWJS just opens with a generic window showing the version number.
nw.js v0.35.0
Node v11.3.0
Chromium 71.0.3578.80
If I drag and drop the desired HTML file into the NWJS window, the app won't load at all because AJAX requests aren't allowed in a file context. (the same as when you open the HTML file by double-clicking on it in the finder).
There is no explanation to be found on the 'debugging with devtools' page.