Skip to content
Snippets Groups Projects
Commit 070e681a authored by echicken's avatar echicken :chicken:
Browse files

Don't check for unread mail or telegrams if guest.

parent dc681c53
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@ function getTelegram() {
);
}
window.onload = function () {
window.onload = function () {
$('#button-logout').click(logout);
$('#button-login').click(login);
......@@ -122,13 +122,17 @@ window.onload = function () {
}
);
setTimeout(scrollUp, 25);
setTimeout(scrollUp, 25);
window.onhashchange = scrollUp;
getMailUnreadCount();
setInterval(getMailUnreadCount, updateInterval);
if ($('#button-logout').length > 0) {
getTelegram();
setInterval(getTelegram, updateInterval);
getMailUnreadCount();
setInterval(getMailUnreadCount, updateInterval);
}
\ No newline at end of file
getTelegram();
setInterval(getTelegram, updateInterval);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment