在 NW.js 中获得 chrome.runtime
get chrome.runtime in NW.js
我正在尝试将 Chrome 应用程序移植到 NW.js 应用程序。这是我第一次用 NW.js 做任何事情,但我读到了:http://nwjs.io/blog/chrome-apps-support/ and I'm following the steps trying to convert this Analytics app。我的问题是 chrome.runtime
在 NW.js 应用程序中是 undefined
。有什么想法吗?
我在将文件夹拖到 NW 可执行文件时遇到了这个问题。当我打包它时,它工作正常。
我正在尝试将 Chrome 应用程序移植到 NW.js 应用程序。这是我第一次用 NW.js 做任何事情,但我读到了:http://nwjs.io/blog/chrome-apps-support/ and I'm following the steps trying to convert this Analytics app。我的问题是 chrome.runtime
在 NW.js 应用程序中是 undefined
。有什么想法吗?
我在将文件夹拖到 NW 可执行文件时遇到了这个问题。当我打包它时,它工作正常。