fix(core): update

This commit is contained in:
2019-03-27 14:38:24 +01:00
parent 56bcfcdae4
commit eb4a4288ed
5 changed files with 48 additions and 4 deletions

View File

@ -0,0 +1,9 @@
export const setupServiceWoker = async () => {
// serviceworker
const script = document.createElement('script');
script.onload = () => {
console.log('Loaded Serviceworker. The serviceworker helps us with notifications and offline capabilities, so you can also read this site when your device is offline.');
};
script.src = 'serviceworker/mainthread.js';
document.head.appendChild(script);
};