From 635b80c58bdd29b22bcd79bc00ab18964cb8df00 Mon Sep 17 00:00:00 2001 From: Amia <9750071+aamiaa@users.noreply.github.com> Date: Wed, 25 Oct 2023 23:26:50 +0200 Subject: [PATCH] fix: NoPendingCount (#1886) --- src/plugins/noPendingCount/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/noPendingCount/index.ts b/src/plugins/noPendingCount/index.ts index 9dce56ba..29458df9 100644 --- a/src/plugins/noPendingCount/index.ts +++ b/src/plugins/noPendingCount/index.ts @@ -55,18 +55,18 @@ export default definePlugin({ // or by searching for "showProgressBadge:" patches: [ { - find: ".getPendingCount=", + find: "getPendingCount(){", predicate: () => settings.store.hideFriendRequestsCount, replacement: { - match: /(?<=\.getPendingCount=function\(\)\{)/, + match: /(?<=getPendingCount\(\)\{)/, replace: "return 0;" } }, { - find: ".getMessageRequestsCount=", + find: "getMessageRequestsCount(){", predicate: () => settings.store.hideMessageRequestsCount, replacement: { - match: /(?<=\.getMessageRequestsCount=function\(\)\{)/, + match: /(?<=getMessageRequestsCount\(\)\{)/, replace: "return 0;" } },