Skip to content

Commit b1291cb

Browse files
Update packages/angular/build/src/utils/index-file/auto-csp.ts
Co-authored-by: Alan Agius <[email protected]>
1 parent ad4d0cc commit b1291cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular/build/src/utils/index-file/auto-csp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export async function autoCsp(html: string): Promise<string> {
135135
src: src,
136136
type: scriptType,
137137
async: getScriptAttributeValue(tag, 'async') !== undefined,
138-
defer: !(getScriptAttributeValue(tag, 'defer') === undefined),
138+
defer: getScriptAttributeValue(tag, 'defer') !== undefined,
139139
});
140140
return; // Skip writing my script tag until we've read it all.
141141
}

0 commit comments

Comments
 (0)