clash_for_linux/dashboard/public/registerSW.js
2022-02-17 14:30:03 +08:00

1 line
136 B
JavaScript

if('serviceWorker' in navigator) {window.addEventListener('load', () => {navigator.serviceWorker.register('./sw.js', { scope: './' })})}