fix(core): update
This commit is contained in:
@ -22,8 +22,8 @@ export class WebSetup {
|
||||
}
|
||||
|
||||
async setup(optionsArg: IWebSetupConstructorOptions) {
|
||||
if(optionsArg.serviceworker) {
|
||||
await setupServiceWoker()
|
||||
if (optionsArg.serviceworker) {
|
||||
await setupServiceWoker();
|
||||
}
|
||||
|
||||
if (optionsArg.googleAnalyticsCode) {
|
||||
@ -31,7 +31,7 @@ export class WebSetup {
|
||||
}
|
||||
|
||||
if (optionsArg.fsCode) {
|
||||
await setupFullStory(optionsArg.fsCode)
|
||||
await setupFullStory(optionsArg.fsCode);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,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.');
|
||||
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);
|
||||
|
@ -1,4 +1,2 @@
|
||||
const removeme = {};
|
||||
export {
|
||||
removeme
|
||||
}
|
||||
export { removeme };
|
||||
|
Reference in New Issue
Block a user