mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
10 lines
176 B
TypeScript
10 lines
176 B
TypeScript
import { registerSW } from 'virtual:pwa-register';
|
|
|
|
const updateSW = registerSW({
|
|
onNeedRefresh() {},
|
|
onOfflineReady() {
|
|
console.log('Offline ready');
|
|
},
|
|
});
|
|
|
|
updateSW();
|