diff options
author | Vendicated <vendicated@riseup.net> | 2022-11-09 12:47:16 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-11-09 12:47:16 +0100 |
commit | 1e6b967d2428714d7166c7ac0735337614195961 (patch) | |
tree | e3b084eb974ff45a2d4d6dae6adb6ff162c863a0 | |
parent | 460f329e4f94de1a234908e40b89b6ba4d7efe87 (diff) | |
download | Vencord-1e6b967d2428714d7166c7ac0735337614195961.tar.gz Vencord-1e6b967d2428714d7166c7ac0735337614195961.tar.bz2 Vencord-1e6b967d2428714d7166c7ac0735337614195961.zip |
Fix moyai and fart
-rw-r--r-- | src/patcher.ts | 2 | ||||
-rw-r--r-- | src/plugins/spotifyControls/styles.css | 2 |
2 files changed, 2 insertions, 2 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. diff --git a/src/plugins/spotifyControls/styles.css b/src/plugins/spotifyControls/styles.css index ee704a7..a612219 100644 --- a/src/plugins/spotifyControls/styles.css +++ b/src/plugins/spotifyControls/styles.css @@ -55,7 +55,7 @@ .vc-spotify-repeat-1 { font-size: 70%; position: absolute; - top: 45%; + top: 50%; left: 50%; transform: translate(-50%, -50%); } |