Skip to content

Commit

Permalink
fix(mail(js)): don't poll server from popup windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Nov 24, 2021
1 parent a08c4c9 commit 11eb6c2
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions UI/WebServerResources/js/Common/navController.js
Expand Up @@ -50,14 +50,16 @@
// Listen to HTTP errors broadcasted from HTTP interceptor
$rootScope.$on('http:Error', onHttpError);

if (sgSettings.activeUser('path').calendar) {
// Fetch Calendar alarms
Preferences.getAlarms();
}
if (!isPopup) {
if (sgSettings.activeUser('path').calendar) {
// Fetch Calendar alarms
Preferences.getAlarms();
}

if (sgSettings.activeUser('path').mail) {
// Poll inbox for new messages
Preferences.pollInbox();
if (sgSettings.activeUser('path').mail) {
// Poll inbox for new messages
Preferences.pollInbox();
}
}
};

Expand Down

0 comments on commit 11eb6c2

Please sign in to comment.