我正在做一个项目,它需要找出一个网页是否在nwjs中运行,然后在它的基础上做一些操作。
现在,该页面在远程服务器上运行,我使用window.location从我的use应用程序跳转到该页面。当跳转到外部位置时,网页即使在nwjs中打开也无法获取nwjs节点环境。
我使用node-remote来允许从原始webapp的package.json中的所有urls进行访问,如下所示:
"single-instance": true,
"node-remote": ["*://*"],
"chromium-args": "--args --touch-events=enabled --disable-web-security --allow-file-access-from-files"我错过了什么吗?
发布于 2019-09-14 23:51:00
https://stackoverflow.com/questions/50207781
复制相似问题