error 'global is not defined' after navigating to a remote page
NWJS Version : 0.26.5 Operating system: windows 8
package.json { "name": "test", "main": "index.html", "node-remote": "<all_urls>" }
index.html
<html>
<body>
test
</body>
<html>
To reproduce:
1 - Open dev tools console 2 - type: location.href="http://www.google.com" 3 - type: location.href=chrome.runtime.getURL("index.html") 4 - type: global ---> error: Uncaught ReferenceError: global is not defined
I can reproduce this issue on Linux/Windows with nwjs-sdk-v0.26.5.
Same issue in nw 0.27.5
I hit this issue when using remote URLs vs. filepath; try adding this to package.json:
"node-remote" : "<all_urls>",
(see documentation here: http://docs.nwjs.io/en/latest/References/Manifest%20Format/) might be similar issue to what this guy faced, hence where I found this solution: https://github.com/nwjs/nw.js/issues/4937
(i was using nwjs-sdk-v0.29.3-osx-x64 on Mac)