aboutsummaryrefslogtreecommitdiff
path: root/src/patcher.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-11-09 12:47:16 +0100
committerVendicated <vendicated@riseup.net>2022-11-09 12:47:16 +0100
commit1e6b967d2428714d7166c7ac0735337614195961 (patch)
treee3b084eb974ff45a2d4d6dae6adb6ff162c863a0 /src/patcher.ts
parent460f329e4f94de1a234908e40b89b6ba4d7efe87 (diff)
downloadVencord-1e6b967d2428714d7166c7ac0735337614195961.tar.gz
Vencord-1e6b967d2428714d7166c7ac0735337614195961.tar.bz2
Vencord-1e6b967d2428714d7166c7ac0735337614195961.zip
Fix moyai and fart
Diffstat (limited to 'src/patcher.ts')
-rw-r--r--src/patcher.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/patcher.ts b/src/patcher.ts
index 4f724cb..eb607b9 100644
--- a/src/patcher.ts
+++ b/src/patcher.ts
@@ -111,7 +111,7 @@ electron.app.whenReady().then(() => {
function patchCsp(headers: Record<string, string[]>, header: string) {
if (header in headers) {
let patchedHeader = headers[header][0];
- for (const directive of ["style-src", "connect-src", "img-src", "font-src"]) {
+ for (const directive of ["style-src", "connect-src", "img-src", "font-src", "media-src"]) {
patchedHeader = patchedHeader.replace(new RegExp(`${directive}.+?;`), `${directive} * blob: data: 'unsafe-inline';`);
}
// TODO: Restrict this to only imported packages with fixed version.