(js) Improve popup detection in mail editor

Fixes #4378
pull/240/head
Francis Lachapelle 2018-01-31 10:02:47 -05:00
parent 29047c4692
commit e29ce4acec
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@
};
this.closePopup = function() {
if ($window.opener)
if ($window.document.body.classList.contains('popup'))
$window.close();
};