You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2022/04/06 01:30:12 UTC
[cordova-plugin-device] 03/04: Update www/device.js
This is an automated email from the ASF dual-hosted git repository.
erisu pushed a commit to branch feat/detect-apple-silicon
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-device.git
commit 3c6a3ad3fecdccdf781af785d34e999bca553fbc
Author: Steve Podell <st...@podell.com>
AuthorDate: Mon Apr 4 09:24:57 2022 -0700
Update www/device.js
Co-authored-by: エリス <er...@users.noreply.github.com>
---
www/device.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/www/device.js b/www/device.js
index 75ef30e..7e67edb 100644
--- a/www/device.js
+++ b/www/device.js
@@ -60,7 +60,10 @@ function Device () {
me.cordova = buildLabel;
me.model = info.model;
me.isVirtual = info.isVirtual;
- me.isiOSAppOnMac = info.isiOSAppOnMac || false;
+ // isiOSAppOnMac is iOS specific. If defined, it will be appended.
+ if (info.isiOSAppOnMac !== undefined) {
+ me.isiOSAppOnMac = info.isiOSAppOnMac;
+ }
me.manufacturer = info.manufacturer || 'unknown';
me.serial = info.serial || 'unknown';
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org