mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-30 17:01:25 +00:00
7 lines
279 B
JavaScript
7 lines
279 B
JavaScript
if ('serviceWorker' in navigator) {
|
|
navigator.serviceWorker.register('./public/pwa/sw.js').then(function(reg) {
|
|
console.log('Successfully registered service worker', reg);
|
|
}).catch(function(err) {
|
|
console.warn('Error whilst registering service worker', err);
|
|
});
|
|
}
|