Github user sgrebnov commented on a diff in the pull request:
https://github.com/apache/cordova-plugin-contacts/pull/49#discussion_r20774412
--- Diff: tests/tests.js ---
@@ -24,8 +24,9 @@ exports.defineAutoTests = function () {
// all of the setup/teardown test methods can reference the following
variables to make sure to do the right cleanup
var gContactObj = null,
gContactId = null,
- isWindowsPhone = cordova.platformId == 'windowsphone';
-
+ isWindowsPhone8 = cordova.platformId == 'windowsphone',
+ isWindows = (cordova.platformId === "windows") ||
(navigator.appVersion.indexOf("MSAppHost/1.0") !== -1),
+ isWindowsPhone81 = (navigator.appVersion.indexOf("Windows Phone 8.1;")
!== -1);
--- End diff --
isWindows = (cordova.platformId === "windows") || (cordova.platformId ===
"windows8")
isWindowsPhone81 = isWIndows && WinJS.Utilities.isPhone
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]