Fix moyai and fart

This commit is contained in:
Vendicated 2022-11-09 12:47:16 +01:00
parent 460f329e4f
commit 1e6b967d24
No known key found for this signature in database
GPG Key ID: EC781ADFB93EFFA3
2 changed files with 2 additions and 2 deletions

@ -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.

@ -55,7 +55,7 @@
.vc-spotify-repeat-1 {
font-size: 70%;
position: absolute;
top: 45%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}