mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
notification tweaks for chrome
This commit is contained in:
parent
5e30c482cd
commit
276e01166a
2 changed files with 10 additions and 5 deletions
|
@ -1,11 +1,16 @@
|
|||
$(document).ready(function () {
|
||||
$(window).load(function () {
|
||||
var speed = 700;
|
||||
var isShown = false;
|
||||
var currentMessage = "";
|
||||
|
||||
$.doTimeout(500, refreshNotifications);
|
||||
|
||||
|
||||
//workaround for the infinite browser load in chrome
|
||||
if ($.browser.webkit) {
|
||||
$.doTimeout(1000, refreshNotifications);
|
||||
}
|
||||
else {
|
||||
refreshNotifications();
|
||||
}
|
||||
|
||||
|
||||
function refreshNotifications() {
|
||||
$.get('/notification/Comet', { message: currentMessage }, notificationCallback);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue