refactor(platform): do not console.error on device get

With user agent fallbacks, its unnecessary to print out errors if the
device plugin isn’t there.
This commit is contained in:
Adam Bradley
2014-09-04 23:38:00 -05:00
parent 6a4f381fdd
commit 150f116e53

View File

@@ -104,9 +104,7 @@
* @returns {object} The device object.
*/
device: function() {
if(window.device) return window.device;
if(this.isWebView()) console.error('device plugin required');
return {};
return window.device || {};
},
_checkPlatforms: function(platforms) {