diff --git a/js/utils/platform.js b/js/utils/platform.js index ee0b9eb911..7d44698b21 100644 --- a/js/utils/platform.js +++ b/js/utils/platform.js @@ -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) {