Skip to content

Commit 461a5b0

Browse files
committed
fix(client): wrong script async check
1 parent b46d6d3 commit 461a5b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/app/composables/head.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function createHeadElement([tag, attrs, innerHTML]: HeadConfig) {
8787
if (innerHTML) {
8888
el.innerHTML = innerHTML
8989
}
90-
if (tag === 'script' && !attrs.async) {
90+
if (tag === 'script' && attrs.async == null) {
9191
// async is true by default for dynamically created scripts
9292
;(el as HTMLScriptElement).async = false
9393
}

0 commit comments

Comments
 (0)