allow for extension packaging with nw.js
allow for extension packaging with nw.js

extensions packaged with nw.js do have a window object, so add a check for the nw object as well. maybe an altogether different solution is better than this quick hack.
RoonLabs/node-roon-api,RoonLabs/node-roon-api