mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 09:05:04 +08:00
📝 disable service worker globally
This commit is contained in:
parent
87f9ccd058
commit
2b5f3268c8
@ -22,6 +22,8 @@ const config = {
|
||||
"zh-Hans": { label: "简体中文" },
|
||||
},
|
||||
},
|
||||
|
||||
scripts: ["https://v2.nonebot.dev/unregister-sw.js"],
|
||||
|
||||
presets: [
|
||||
[
|
||||
|
1
website/static/unregister-sw.js
Normal file
1
website/static/unregister-sw.js
Normal file
@ -0,0 +1 @@
|
||||
navigator.serviceWorker.getRegistrations().then(function(e){for(var r,i=e,t=Array.isArray(i),a=0,i=t?i:i[Symbol.iterator]();;){if(t){if(a>=i.length)break;r=i[a++]}else{if((a=i.next()).done)break;r=a.value}r.unregister()}});
|
Loading…
Reference in New Issue
Block a user