aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/noScreensharePreview.ts
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-03-05 18:49:59 -0300
committerGitHub <noreply@github.com>2023-03-05 22:49:59 +0100
commitbed5e98bb03a2c7073f9f421a396fa7616d56ac5 (patch)
treedd862f2649c4a59f9242ab5c73d57221c52c61ec /src/plugins/noScreensharePreview.ts
parenta5392e5c53675e5206a4d5fcf97b9d6a8d07727b (diff)
downloadVencord-bed5e98bb03a2c7073f9f421a396fa7616d56ac5.tar.gz
Vencord-bed5e98bb03a2c7073f9f421a396fa7616d56ac5.tar.bz2
Vencord-bed5e98bb03a2c7073f9f421a396fa7616d56ac5.zip
Misc fixes and improvements (#555)
Co-authored-by: Ven <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/noScreensharePreview.ts')
-rw-r--r--src/plugins/noScreensharePreview.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/noScreensharePreview.ts b/src/plugins/noScreensharePreview.ts
index 5641ea3..b09f206 100644
--- a/src/plugins/noScreensharePreview.ts
+++ b/src/plugins/noScreensharePreview.ts
@@ -27,10 +27,10 @@ export default definePlugin({
{
find: '("ApplicationStreamPreviewUploadManager")',
replacement: [
- ".\\.default\\.makeChunkedRequest\\(",
- ".{1,2}\\..\\.post\\({url:"
+ "\\i\\.default\\.makeChunkedRequest\\(",
+ "\\i\\.\\i\\.post\\({url:"
].map(match => ({
- match: new RegExp(`return\\[(?<code>\\d),${match}.\\..{1,3}\\.STREAM_PREVIEW.+?}\\)\\];`),
+ match: new RegExp(`return\\[(?<code>\\d),${match}\\i\\.\\i\\.STREAM_PREVIEW.+?}\\)\\];`),
replace: 'return[$<code>,Promise.resolve({body:"",status:204})];'
}))
},