mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-12 15:11:06 +08:00
parent
528c0e79a2
commit
58cad70f6d
2 changed files with 12 additions and 0 deletions
|
|
@ -380,6 +380,14 @@ export const commands: MonkeyTypes.CommandsSubgroup = {
|
|||
return JSON.stringify(Config);
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "clearNotifications",
|
||||
display: "Clear all notifications",
|
||||
icon: "fa-trash-alt",
|
||||
exec: async (): Promise<void> => {
|
||||
Notifications.clearAllNotifications();
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "clearSwCache",
|
||||
display: "Clear SW cache",
|
||||
|
|
|
|||
|
|
@ -277,6 +277,10 @@ export function addBanner(
|
|||
return banner.id;
|
||||
}
|
||||
|
||||
export function clearAllNotifications(): void {
|
||||
$("#notificationCenter .notif").remove();
|
||||
}
|
||||
|
||||
const debouncedMarginUpdate = debounce(100, updateMargin);
|
||||
|
||||
$(window).on("resize", () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue