1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-24 18:02:15 -05:00

Reset width before decription

This commit is contained in:
Tankred Hase 2015-05-09 11:53:33 +02:00
parent e5e1c118be
commit 4cf1ef3107

View File

@ -96,6 +96,8 @@ ngModule.directive('frameLoad', function($window) {
return;
}
resetWidth();
if (mail.encrypted && !mail.decrypted) {
// decrypt current mail
scope.decrypt(mail).then(function() {
@ -107,8 +109,6 @@ ngModule.directive('frameLoad', function($window) {
return;
}
resetWidth();
if (mail.html) {
// if there are image tags in the html?
var hasImages = /<img[^>]+\bsrc=['"][^'">]+['"]/ig.test(mail.html);