mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-21 08:58:47 +08:00
added command line command to clear sw cache
This commit is contained in:
parent
5ab1233457
commit
22ac48a691
1 changed files with 9 additions and 0 deletions
|
|
@ -3034,6 +3034,15 @@ export let defaultCommands = {
|
|||
visible: false,
|
||||
subgroup: commandsMonkeyPowerLevel,
|
||||
},
|
||||
{
|
||||
id: "clearSwCache",
|
||||
display: "Clear SW cache",
|
||||
icon: "fa-cog",
|
||||
exec: async () => {
|
||||
await caches.delete("sw-cache");
|
||||
window.location.reload(true);
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue