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
1 changed files with 1 additions and 1 deletions

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;
}