mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-15 17:43:08 -04:00
partially revert "Array support for find + ResurrectHome: View Server Home Button on Server Guide (#2283)"
This reverts commit 5636f9d979
.
It breaks Vesktop which is not acceptable. Need to resolve this conflict and add this back later
This commit is contained in:
parent
5636f9d979
commit
89dc74d5d7
5 changed files with 15 additions and 47 deletions
|
@ -186,8 +186,7 @@ function patchFactories(factories: Record<string | number, (module: { exports: a
|
|||
const executePatch = traceFunction(`patch by ${patch.plugin}`, (match: string | RegExp, replace: string) => code.replace(match, replace));
|
||||
if (patch.predicate && !patch.predicate()) continue;
|
||||
|
||||
// we change all patch.find to array in plugins/index
|
||||
if ((patch.find as string[]).every(f => code.includes(f))) {
|
||||
if (code.includes(patch.find)) {
|
||||
patchedBy.add(patch.plugin);
|
||||
|
||||
const previousMod = mod;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue