Fix LoginWithQR Patch

This commit is contained in:
thororen1234 2024-09-17 22:05:50 -04:00
parent 5b568d708c
commit fe66fc4762
10 changed files with 4 additions and 12 deletions

View file

@ -68,8 +68,8 @@ export default definePlugin({
{
find: "Messages.MULTI_ACCOUNT_MENU_LABEL",
replacement: {
// Insert our own MenuItem before the Switch Account button
match: /children:\[(.{54}id:"switch-account")/,
// Insert our own MenuItem before the Switch Accounts button
match: /children:\[(.{0,54}id:"switch-accounts")/,
replace: "children:[$self.ScanQrMenuItem,$1",
},
},