(js) Improve popup detection in mail editor

Fixes #4378
This commit is contained in:
Francis Lachapelle committed 2018-01-31 10:02:47 -05:00
1 parent 29047c4692
commit e29ce4acec
1 file changed
+1 -1
@@ -351,7 +351,7 @@
};
this.closePopup = function() {
if ($window.opener)
if ($window.document.body.classList.contains('popup'))
$window.close();
};