fix(mail(js)): don't poll server from popup windows

This commit is contained in:
Francis Lachapelle
2021-12-02 14:50:44 -05:00
parent 2ecd441f32
commit 8724f90dd1
@@ -50,7 +50,7 @@
// Listen to HTTP errors broadcasted from HTTP interceptor
$rootScope.$on('http:Error', onHttpError);
if (!isPopup) {
if (!$scope.isPopup) {
if (sgSettings.activeUser('path').calendar) {
// Fetch Calendar alarms
Preferences.getAlarms();