summaryrefslogtreecommitdiff
path: root/StoneIsland/plugins/cordova-plugin-device/src/browser
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/plugins/cordova-plugin-device/src/browser')
-rw-r--r--[-rwxr-xr-x]StoneIsland/plugins/cordova-plugin-device/src/browser/DeviceProxy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/StoneIsland/plugins/cordova-plugin-device/src/browser/DeviceProxy.js b/StoneIsland/plugins/cordova-plugin-device/src/browser/DeviceProxy.js
index fcaed20c..a8632016 100755..100644
--- a/StoneIsland/plugins/cordova-plugin-device/src/browser/DeviceProxy.js
+++ b/StoneIsland/plugins/cordova-plugin-device/src/browser/DeviceProxy.js
@@ -19,7 +19,6 @@
*
*/
var browser = require('cordova/platform');
-var cordova = require('cordova');
function getPlatform() {
return "browser";
@@ -36,6 +35,7 @@ function getVersion() {
function getBrowserInfo(getModel) {
var userAgent = navigator.userAgent;
var returnVal = '';
+ var offset;
if ((offset = userAgent.indexOf('Chrome')) !== -1) {
returnVal = (getModel) ? 'Chrome' : userAgent.substring(offset + 7);