fix(web): set meter widths from script so the CSP does not block them

This commit is contained in:
Loki 2026-10-24 17:19:52 +02:00
parent e865df33a4
commit 0093ce7577
Signed by: boba
GPG key ID: 253067914055423B
2 changed files with 9 additions and 1 deletions

View file

@ -99,3 +99,8 @@ test("the long dash is absent from sources, docs, public/ and the browser bundle
}
assert.deepEqual(bad, []);
});
test("app templates avoid inline style attributes blocked by the site CSP", async () => {
const source = await Bun.file("src/app.ts").text();
assert.doesNotMatch(source, /style="/);
});