diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-26 14:14:10 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-26 14:14:10 -0400 |
| commit | 6e0faa8a4f2a2e5e821857514c4001b30d9cfea9 (patch) | |
| tree | 6581af4cbaeb3eeabfb39e8339c28a819073dd4d /www | |
| parent | 368cca55a349bc32e916f036239d9a89eb04b59b (diff) | |
updated to go back to old email plugin to remove GET_ACCOUNT permission
Diffstat (limited to 'www')
| -rw-r--r-- | www/js/LogCtrl.js | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/www/js/LogCtrl.js b/www/js/LogCtrl.js index b7be82ba..af7b037e 100644 --- a/www/js/LogCtrl.js +++ b/www/js/LogCtrl.js @@ -155,34 +155,7 @@ angular.module('zmApp.controllers').controller('zmApp.LogCtrl', ['$scope', '$roo logstring = logstring.replace(re4, "<server>"); } - cordova.plugins.email.isAvailable( - function (isAvailable) { - - if (isAvailable) { - cordova.plugins.email.open({ - to: zm.authoremail, - subject: $rootScope.appName + ' logs', - body: logstring - }); - } - else { - // kEmailNotConfigured - $rootScope.zmPopup = SecuredPopups.show('alert', - { - title: $translate.instant('kError'), - template: $translate.instant('kEmailNotConfigured'), - okText: $translate.instant('kButtonOk'), - cancelText: $translate.instant('kButtonCancel'), - }); - - } - - }); - - - - - // window.plugins.emailComposer.showEmailComposerWithCallback(callback, $rootScope.appName + ' logs', logstring, [zm.authoremail]); + window.plugins.emailComposer.showEmailComposerWithCallback(callback, $rootScope.appName + ' logs', logstring, [zm.authoremail]); } else |
