mirror of https://github.com/moparisthebest/mail
Fix platform checking in Chrome Web App
This commit is contained in:
parent
94188be7b3
commit
d36ddcef7f
|
@ -80,7 +80,7 @@ var AddAccountCtrl = function($scope, $location, $routeParams, $timeout, $q, mai
|
||||||
* @return {Boolean} if we are running on iOS
|
* @return {Boolean} if we are running on iOS
|
||||||
*/
|
*/
|
||||||
$scope.checkIOS = function() {
|
$scope.checkIOS = function() {
|
||||||
if (!window.chrome || !chrome.runtime) {
|
if (!(window.chrome && chrome.runtime && chrome.runtime.getPlatformInfo)) {
|
||||||
$scope.isIOS = false;
|
$scope.isIOS = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue