1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-22 07:18:49 -05:00

Fix platform checking in Chrome Web App

This commit is contained in:
Tankred Hase 2015-04-27 16:52:15 +02:00
parent 94188be7b3
commit d36ddcef7f

View File

@ -80,7 +80,7 @@ var AddAccountCtrl = function($scope, $location, $routeParams, $timeout, $q, mai
* @return {Boolean} if we are running on iOS
*/
$scope.checkIOS = function() {
if (!window.chrome || !chrome.runtime) {
if (!(window.chrome && chrome.runtime && chrome.runtime.getPlatformInfo)) {
$scope.isIOS = false;
return;
}