(js) Improve popup detection in mail editor

Fixes #4378
This commit is contained in:
Francis Lachapelle 2018-01-31 10:02:47 -05:00
parent 29047c4692
commit e29ce4acec

View file

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