cordova-plugin-sensors icon indicating copy to clipboard operation
cordova-plugin-sensors copied to clipboard

Sensor object should only be accessible by doing `import` or `require`

Open yxliang01 opened this issue 7 years ago • 0 comments

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

yxliang01 avatar Oct 11 '17 06:10 yxliang01