Homepage-imsyy/dev-dist/registerSW.js
2023-01-15 17:47:35 +08:00

1 line
119 B
JavaScript

if('serviceWorker' in navigator) navigator.serviceWorker.register('/dev-sw.js?dev-sw', { scope: '/', type: 'classic' })