Skip to content

Commit

Permalink
(js) Improve popup detection in mail editor
Browse files Browse the repository at this point in the history
Fixes #4378
  • Loading branch information
cgx committed Jan 31, 2018
1 parent 29047c4 commit e29ce4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Mailer/MessageController.js
Expand Up @@ -351,7 +351,7 @@
};

this.closePopup = function() {
if ($window.opener)
if ($window.document.body.classList.contains('popup'))
$window.close();
};

Expand Down

0 comments on commit e29ce4a

Please sign in to comment.