diff --git a/src/patcher.ts b/src/patcher.ts index 4f724cbb..eb607b93 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 ee704a7b..a612219b 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%); }