mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-12 16:13:02 -04:00
make intent clearer
This commit is contained in:
parent
694c31f28f
commit
ffd1bd2d6a
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ const patchCsp = (headers: Record<string, string[]>) => {
|
|||
const csp = parsePolicy(headers[header][0]);
|
||||
|
||||
const pushDirective = (directive: string, ...values: string[]) => {
|
||||
csp[directive] ??= [...csp["default-src"] ?? []];
|
||||
csp[directive] ??= [...(csp["default-src"] ?? [])];
|
||||
csp[directive].push(...values);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue