fix(client): wrong script async check

pull/4274/head
Divyansh Singh 1 month ago
parent b46d6d3a20
commit 461a5b001d

@ -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
}

Loading…
Cancel
Save