noSystemBadge: fix (#1914)

This commit is contained in:
AutumnVN 2023-10-28 07:20:29 +07:00 committed by GitHub
parent b3311c6f12
commit 7f17e70697
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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(){},"
}
]
}