summaryrefslogtreecommitdiff
path: root/StoneIsland/plugins/cordova-plugin-device/src/browser/DeviceProxy.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-11-08 12:37:03 -0500
committerJules Laplace <jules@okfoc.us>2016-11-08 12:37:03 -0500
commitef4f212fc1482136dba1e690ec589b315b4a377f (patch)
tree0b7e16d72567fafcfd3e08d7c5c591ad07a63458 /StoneIsland/plugins/cordova-plugin-device/src/browser/DeviceProxy.js
parent5fa81da81260d65113f57a293b6256d334fe8e2d (diff)
build 0.7.0
Diffstat (limited to 'StoneIsland/plugins/cordova-plugin-device/src/browser/DeviceProxy.js')
-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);