cordova-plugin-sensors
cordova-plugin-sensors copied to clipboard
Sensor object should only be accessible by doing `import` or `require`
Sensor object should only be accessible by doing import
or require
, instead of putting it to the global window
object. I believe this is a better practice. Also, when you do testing, the global object sensors
will just simply not exist.
Thanks