chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2025-07-10 18:26:31 +02:00
parent a190597905
commit 087e639020
382 changed files with 29496 additions and 2675 deletions

View file

@ -261,7 +261,7 @@ class GenerateLayouts extends Script {
}
): Promise<string> {
const info = await this.sourceOverview.getOverview(layout, layoutJson)
const urls = info.map(info => info["url"] ?? info)
const urls = info.map((info) => info["url"] ?? info)
const hosts = new Set<string>()
for (let connectSource of urls) {
@ -286,12 +286,7 @@ class GenerateLayouts extends Script {
}
const connectSrc = Array.from(hosts).sort()
console.log(
"Got",
hosts.size,
"connect-src items for theme",
layout.id,
)
console.log("Got", hosts.size, "connect-src items for theme", layout.id)
const csp: Record<string, string> = {
"default-src": "'self'",