From 1e6b967d2428714d7166c7ac0735337614195961 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 9 Nov 2022 12:47:16 +0100 Subject: [PATCH] Fix moyai and fart --- src/patcher.ts | 2 +- 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, 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%); }