Search code examples
google-chrome-appnw.js

get chrome.runtime in NW.js


I'm trying to port a Chrome app to a NW.js one. This is my first time doing anything with NW.js, but I read this: http://nwjs.io/blog/chrome-apps-support/ and I'm following the steps trying to convert this Analytics app. My problem is that chrome.runtime is undefined in the NW.js app. Any ideas?


Solution

  • I was getting this problem when dragging the folder to the NW executable. When I packaged it, it worked fine.