Absolutely love the work you guys are doing and I firmly believe that javascript is the way to go with everything. I want to make a Chrome App using cylon.js and therefore stumbled upon this repo from this blog post. Looking through the README, it's documented that we have to write our code in the script.js file for instance and bundle it using Browserify like so:
While this makes sense to me, after going through browser.js file which is inculded by default in index.html, I notice that there are chrome specific serial API's used there supporting the chrome runtime. Does, Browserify accomplish it by default? I doubt.
So, if I want to modify script.js to support different device having different code, how do I bundle it successfully utilizing the Chrome API's or how do I use browser.js to build the bundled js file otherwise?
Absolutely love the work you guys are doing and I firmly believe that javascript is the way to go with everything. I want to make a Chrome App using cylon.js and therefore stumbled upon this repo from this blog post. Looking through the README, it's documented that we have to write our code in the
script.js
file for instance and bundle it using Browserify like so:While this makes sense to me, after going through
browser.js
file which is inculded by default inindex.html
, I notice that there are chrome specific serial API's used there supporting the chrome runtime. Does, Browserify accomplish it by default? I doubt.So, if I want to modify
script.js
to support different device having different code, how do I bundle it successfully utilizing the Chrome API's or how do I usebrowser.js
to build the bundled js file otherwise?Referencing issue - https://github.com/hybridgroup/cylon-example-chrome/issues/1