clash_for_linux/dashboard/public/registerSW.js

1 line
136 B
JavaScript
Raw Normal View History

2022-02-17 14:30:03 +08:00
if('serviceWorker' in navigator) {window.addEventListener('load', () => {navigator.serviceWorker.register('./sw.js', { scope: './' })})}