diff --git a/src/js/controller/login/add-account.js b/src/js/controller/login/add-account.js index 199d9ec..67fd6d1 100644 --- a/src/js/controller/login/add-account.js +++ b/src/js/controller/login/add-account.js @@ -74,32 +74,6 @@ var AddAccountCtrl = function($scope, $location, $routeParams, $timeout, $q, mai $location.path('/login-set-credentials'); }); }; - - /** - * A helper function is detect if the app is running as an ios-cordova app - * @return {Boolean} if we are running on iOS - */ - $scope.checkIOS = function() { - if (!(window.chrome && chrome.runtime && chrome.runtime.getPlatformInfo)) { - $scope.isIOS = false; - return; - } - - // check which runtime the app is running under - chrome.runtime.getPlatformInfo(function(platformInfo) { - $timeout(function() { - if (chrome.runtime.lastError || !platformInfo) { - $scope.isIOS = false; // assume not running of iOS if something goes wrong - return; - } - - $scope.isIOS = platformInfo.os.indexOf('ios') !== -1; - }); - }); - }; - - // check platform on init - $scope.checkIOS(); }; module.exports = AddAccountCtrl; \ No newline at end of file diff --git a/src/tpl/add-account.html b/src/tpl/add-account.html index 7f055e9..c835cab 100644 --- a/src/tpl/add-account.html +++ b/src/tpl/add-account.html @@ -22,7 +22,7 @@ -

+

Or sign up for an encrypted Whiteout Mailbox.