From 7f17e70697cb0899c960c9da2822ffc35bf84534 Mon Sep 17 00:00:00 2001 From: AutumnVN Date: Sat, 28 Oct 2023 07:20:29 +0700 Subject: [PATCH] noSystemBadge: fix (#1914) --- src/plugins/noSystemBadge.discordDesktop/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/noSystemBadge.discordDesktop/index.ts b/src/plugins/noSystemBadge.discordDesktop/index.ts index 591a0be0..0fbb5332 100644 --- a/src/plugins/noSystemBadge.discordDesktop/index.ts +++ b/src/plugins/noSystemBadge.discordDesktop/index.ts @@ -25,15 +25,15 @@ export default definePlugin({ authors: [Devs.rushii], patches: [ { - find: "setSystemTrayApplications:function", + find: ",setSystemTrayApplications", replacement: [ { - match: /setBadge:function.+?},/, - replace: "setBadge:function(){}," + match: /setBadge\(\i\).+?},/, + replace: "setBadge(){}," }, { - match: /setSystemTrayIcon:function.+?},/, - replace: "setSystemTrayIcon:function(){}," + match: /setSystemTrayIcon\(\i\).+?},/, + replace: "setSystemTrayIcon(){}," } ] }