Skip to content

Commit ad4d0cc

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

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
@@ -134,7 +134,7 @@ export async function autoCsp(html: string): Promise<string> {
134134
scriptContent.push({
135135
src: src,
136136
type: scriptType,
137-
async: !(getScriptAttributeValue(tag, 'async') === undefined),
137+
async: getScriptAttributeValue(tag, 'async') !== undefined,
138138
defer: !(getScriptAttributeValue(tag, 'defer') === undefined),
139139
});
140140
return; // Skip writing my script tag until we've read it all.

0 commit comments

Comments
 (0)