diff options
author | megumin <megumin.bakaretsurie@gmail.com> | 2022-10-17 20:18:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 20:18:25 +0100 |
commit | 5625d63e46c43132676148a86739025c15fa5f2d (patch) | |
tree | 3699e126ad86cc2972b3aecfe4eeaef378e9e9f4 /src/webpack/patchWebpack.ts | |
parent | ae730e83984cbf4dc804eebbf260a055bfe635c0 (diff) | |
download | Vencord-5625d63e46c43132676148a86739025c15fa5f2d.tar.gz Vencord-5625d63e46c43132676148a86739025c15fa5f2d.tar.bz2 Vencord-5625d63e46c43132676148a86739025c15fa5f2d.zip |
Settings 2.0 (#107)
Co-authored-by: Vendicated <vendicated@riseup.net>
Diffstat (limited to 'src/webpack/patchWebpack.ts')
-rw-r--r-- | src/webpack/patchWebpack.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index 54034df..7d03d66 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -100,6 +100,7 @@ function patchPush() { for (let i = 0; i < patches.length; i++) { const patch = patches[i]; + if (patch.predicate && !patch.predicate()) continue; if (code.includes(patch.find)) { patchedBy.add(patch.plugin); // @ts-ignore we change all patch.replacement to array in plugins/index |