@aerogear/core
Advanced tools
Comparing version 2.6.4-dev.1017.f64036e.0 to 2.6.4-dev.1031.2daa588.0
@@ -20,4 +20,4 @@ "use strict"; | ||
exports.isNative = function () { return exports.isMobileCordova(); }; | ||
exports.isCordovaAndroid = function () { return (window.device.platform === "Android"); }; | ||
exports.isCordovaIOS = function () { return (window.device.platform === "iOS"); }; | ||
exports.isCordovaAndroid = function () { return (window.device && window.device.platform === "Android"); }; | ||
exports.isCordovaIOS = function () { return (window.device && window.device.platform === "iOS"); }; | ||
//# sourceMappingURL=PlatformUtils.js.map |
{ | ||
"name": "@aerogear/core", | ||
"version": "2.6.4-dev.1017.f64036e.0", | ||
"version": "2.6.4-dev.1031.2daa588.0", | ||
"description": "JavaScript Core SDK for AeroGear services", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -26,7 +26,7 @@ declare var window: any; | ||
export const isCordovaAndroid = () => ( | ||
window.device.platform === "Android" | ||
window.device && window.device.platform === "Android" | ||
); | ||
export const isCordovaIOS = () => ( | ||
window.device.platform === "iOS" | ||
window.device && window.device.platform === "iOS" | ||
); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57698