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

update shared components

This commit is contained in:
Luke Pulverenti 2016-08-06 22:11:39 -04:00
parent da25a9cc2a
commit 866ecf78b4
16 changed files with 65 additions and 49 deletions

View file

@ -28,9 +28,14 @@ define(['serverNotifications', 'playbackManager', 'events', 'globalize', 'requir
}
function resetRegistration() {
navigator.serviceWorker.ready.then(function (registration) {
serviceWorkerRegistration = registration;
});
var serviceWorker = navigator.serviceWorker;
if (serviceWorker) {
serviceWorker.ready.then(function (registration) {
serviceWorkerRegistration = registration;
});
}
}
resetRegistration();