Fix moyai and fart
This commit is contained in:
parent
460f329e4f
commit
1e6b967d24
|
@ -111,7 +111,7 @@ electron.app.whenReady().then(() => {
|
||||||
function patchCsp(headers: Record<string, string[]>, header: string) {
|
function patchCsp(headers: Record<string, string[]>, header: string) {
|
||||||
if (header in headers) {
|
if (header in headers) {
|
||||||
let patchedHeader = headers[header][0];
|
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';`);
|
patchedHeader = patchedHeader.replace(new RegExp(`${directive}.+?;`), `${directive} * blob: data: 'unsafe-inline';`);
|
||||||
}
|
}
|
||||||
// TODO: Restrict this to only imported packages with fixed version.
|
// TODO: Restrict this to only imported packages with fixed version.
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
.vc-spotify-repeat-1 {
|
.vc-spotify-repeat-1 {
|
||||||
font-size: 70%;
|
font-size: 70%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 45%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue