blob: 94ece4f7bbafbd21d64c4ef1e489f01ec969fa73 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* eslint-env browser */
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker
.register('/expo-service-worker.js', { scope: '/' })
.then(function (info) {
// console.info('Registered service-worker', info);
})
.catch(function (error) {
console.info('Failed to register service-worker', error);
});
});
}
|