UserAgent can't be changed for WebView once it is in package.json
NWJS Version 0.30.5: Operating System : Windows 10 64 bit
Expected behavior
Normally when you call webview.setUserAgentOverride you can set the special userAgent for the webview. It is also activate inmediately in the webview
Actual behavior
However when you already have a "user-agent" in the package.json they it is always used and you can not change the userAgent runtime any more for the webviews
How to reproduce
See the included demo:
click on the "change User Agent" button does not displays the new user agent in the webview.
However if you remove "user-agent" key from package.json - then it works fine.
I can reproduce this issue on Linux/Windows with nwjs-sdk-v0.31.4.
Is any chance to fix this?
Same issue in 0.61