From b4d0d9573165ab388b68ed0277a1c9fe4f42046c Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Tue, 25 Jul 2023 21:34:57 +0800 Subject: fix vencord toolbox being unusable with drag region (#1480) * fix(OpenInApp): Broken patch (#1434) * fix: vencord toolbox unreachable with drag region --------- Co-authored-by: whqwert <94757998+whqwert@users.noreply.github.com> --- src/plugins/openInApp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/openInApp.ts') diff --git a/src/plugins/openInApp.ts b/src/plugins/openInApp.ts index 83cd828..2db0b8d 100644 --- a/src/plugins/openInApp.ts +++ b/src/plugins/openInApp.ts @@ -71,7 +71,7 @@ export default definePlugin({ { find: ".CONNECTED_ACCOUNT_VIEWED,", replacement: { - match: /(?<=href:\i,onClick:function\(\)\{)(?=return \i=(\i)\.type,.{0,50}CONNECTED_ACCOUNT_VIEWED)/, + match: /(?<=href:\i,onClick:function\(\i\)\{)(?=\i=(\i)\.type,.{0,50}CONNECTED_ACCOUNT_VIEWED)/, replace: "$self.handleAccountView(arguments[0],$1.type,$1.id);" } } -- cgit