diff options
author | Vendicated <vendicated@riseup.net> | 2022-09-15 18:17:52 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-09-15 18:17:52 +0200 |
commit | 9bf28c0e7adc47173963875d526ced713efea171 (patch) | |
tree | 04b0723bc4f1e3ceebbb9ea65693c310ee88864c /src/plugins | |
parent | b1d3f5e52fc7592907a3a18d5bce3f3b785e4985 (diff) | |
download | Vencord-9bf28c0e7adc47173963875d526ced713efea171.tar.gz Vencord-9bf28c0e7adc47173963875d526ced713efea171.tar.bz2 Vencord-9bf28c0e7adc47173963875d526ced713efea171.zip |
Remove newlines in webpack chunks
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/STFU.ts | 2 | ||||
-rw-r--r-- | src/plugins/settings.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/STFU.ts b/src/plugins/STFU.ts index d154b4f..38b2064 100644 --- a/src/plugins/STFU.ts +++ b/src/plugins/STFU.ts @@ -7,7 +7,7 @@ export default definePlugin({ patches: [{ find: "setDevtoolsCallbacks", replacement: { - match: /\.default=function.+$/s, + match: /\.default=function.+$/, replace: ".default=function(){}}" } }] diff --git a/src/plugins/settings.ts b/src/plugins/settings.ts index fe125e7..63c36d6 100644 --- a/src/plugins/settings.ts +++ b/src/plugins/settings.ts @@ -16,7 +16,7 @@ export default definePlugin({ } }, { - match: /\w\.createElement.+?["']Host ["'].+?\):null/s, + match: /\w\.createElement.+?["']Host ["'].+?\):null/, replace: m => { const idx = m.indexOf("Host") - 1; const template = m.slice(0, idx); |