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);
}
}

View file

@ -98,13 +98,20 @@
TabBar.show();
}
var isFirstHide = true;
function hideTabs() {
if (!initComplete) {
return;
}
TabBar.hide();
var hide = function () { TabBar.hide(); };
if (isFirstHide) {
isFirstHide = false;
setTimeout(hide, 1000);
} else {
hide();
}
}
Dashboard.ready(function () {
@ -113,7 +120,7 @@
Events.on(ConnectionManager, 'localusersignedin', showTabs);
Events.on(ConnectionManager, 'localusersignedout', hideTabs);
Events.on(MediaController, 'playbackstart', onPlaybackStart);
Events.on(MediaController, 'beforeplaybackstart', onPlaybackStart);
Events.on(MediaController, 'playbackstop', onPlaybackStop);
});