1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update access denied exceptions

This commit is contained in:
Luke Pulverenti 2015-09-25 22:31:13 -04:00
parent 294281602e
commit ad38cf4783
17 changed files with 154 additions and 138 deletions

View file

@ -7,7 +7,7 @@
var fetcher = window.BackgroundFetch;
fetcher.configure(onBackgroundFetch, onBackgroundFetchFailed, {
stopOnTerminate: true // <-- false is default
stopOnTerminate: false // <-- false is default
});
}
@ -55,7 +55,7 @@
Logger.log('- BackgroundFetch failed');
}
var syncInterval = 1800000;
var syncInterval = 3600000;
function restartInterval() {
@ -65,11 +65,12 @@
}, syncInterval);
if (lastStart > 0 && (now - lastStart) >= syncInterval) {
if (lastStart > 0 && (new Date().getTime() - lastStart) >= syncInterval) {
setTimeout(function () {
startSync();
}, 3000);
}, 5000);
}
}