Skip to content

Commit

Permalink
fix(client): wrong script async check
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Oct 12, 2024
1 parent b46d6d3 commit 461a5b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/app/composables/head.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function createHeadElement([tag, attrs, innerHTML]: HeadConfig) {
if (innerHTML) {
el.innerHTML = innerHTML
}
if (tag === 'script' && !attrs.async) {
if (tag === 'script' && attrs.async == null) {
// async is true by default for dynamically created scripts
;(el as HTMLScriptElement).async = false
}
Expand Down

0 comments on commit 461a5b0

Please sign in to comment.