forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
a190597905
commit
087e639020
382 changed files with 29496 additions and 2675 deletions
|
@ -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'",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue