cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alsoro...@apache.org
Subject cordova-plugin-device git commit: CB-13113 (browser) device.isVirtual is always false
Date Wed, 26 Jul 2017 08:19:12 GMT
Repository: cordova-plugin-device
Updated Branches:
  refs/heads/master f32cfc288 -> a886200d3


CB-13113 (browser) device.isVirtual is always false


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/commit/a886200d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/a886200d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/a886200d

Branch: refs/heads/master
Commit: a886200d3f9a56a4de21090effca050c94613a2b
Parents: f32cfc2
Author: Alexander Sorokin <alexander.sorokin@akvelon.com>
Authored: Wed Jul 26 10:49:05 2017 +0300
Committer: Alexander Sorokin <alexander.sorokin@akvelon.com>
Committed: Wed Jul 26 10:52:03 2017 +0300

----------------------------------------------------------------------
 README.md                  | 5 +++--
 src/browser/DeviceProxy.js | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/a886200d/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 97dd5d4..2cdb708 100644
--- a/README.md
+++ b/README.md
@@ -287,14 +287,15 @@ var isSim = device.isVirtual;
 ### Supported Platforms
 
 - Android 2.1+
+- Browser
 - iOS
 - Windows Phone 8
 - Windows
 - OSX
 
-### OSX Quirk
+### OSX and Browser Quirk
 
-The `isVirtual` property on OS X always returns false.
+The `isVirtual` property on OS X and Browser always returns false.
 
 ## device.serial
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/a886200d/src/browser/DeviceProxy.js
----------------------------------------------------------------------
diff --git a/src/browser/DeviceProxy.js b/src/browser/DeviceProxy.js
index bc2e601..dfb812f 100644
--- a/src/browser/DeviceProxy.js
+++ b/src/browser/DeviceProxy.js
@@ -75,7 +75,8 @@ module.exports = {
                 platform: getPlatform(),
                 model: getModel(),
                 version: getVersion(),
-                uuid: null
+                uuid: null,
+                isVirtual: false
             });
         }, 0);
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message