mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-31 03:33:36 -05:00
feat(LoginWithQR): Update (#93)
* fix: fix loginwithqr + devcompanion lazy fix * Description One Line --------- Co-authored-by: thororen <78185467+thororen1234@users.noreply.github.com>
This commit is contained in:
parent
a09a3a8a8f
commit
26c7feaa39
2 changed files with 4 additions and 4 deletions
|
@ -59,7 +59,7 @@ export default definePlugin({
|
||||||
replacement: {
|
replacement: {
|
||||||
// Find the Edit User Profile button and insert our custom button.
|
// Find the Edit User Profile button and insert our custom button.
|
||||||
// A bit jank, but whatever
|
// A bit jank, but whatever
|
||||||
match: /,(.{0,20}\.Button,.{0,100}#{intl::USER_SETTINGS_EDIT_USER_PROFILE}\)}\))/,
|
match: /,(\(.{1,90}#{intl::USER_SETTINGS_EDIT_USER_PROFILE}\)}\))/,
|
||||||
replace: ",$self.insertScanQrButton($1)",
|
replace: ",$self.insertScanQrButton($1)",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -282,11 +282,11 @@ export function initWs(isManual = false) {
|
||||||
const { find, replacement } = data as PatchData;
|
const { find, replacement } = data as PatchData;
|
||||||
|
|
||||||
let candidates;
|
let candidates;
|
||||||
if (data.findType === FindType.STRING)
|
if (data.findType === FindType.REGEX)
|
||||||
candidates = search(find.toString());
|
candidates = search(...mkRegexFind(find));
|
||||||
|
|
||||||
else
|
else
|
||||||
candidates = search(...mkRegexFind(find));
|
candidates = search(find.toString());
|
||||||
|
|
||||||
// const candidates = search(find);
|
// const candidates = search(find);
|
||||||
const keys = Object.keys(candidates);
|
const keys = Object.keys(candidates);
|
||||||
|
|
Loading…
Reference in a new issue