Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit 90ba9db

Browse files
fix: changed 'utf8' to 'utf-8' for the injected script charset
Bugfix to helpers.js which specified 'utf8' rather than 'utf-8' for the script element charset. As an aside this attribute is deprecated on script tags. It is inherited automatically as utf-8 from the document. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#Deprecated_attributes
1 parent d92b97d commit 90ba9db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function loadScript (url) {
88
const script = document.createElement('script')
99
script.async = true
1010
script.src = url
11-
script.charset = 'utf8'
11+
script.charset = 'utf-8'
1212

1313
head.appendChild(script)
1414

@@ -120,4 +120,4 @@ export const promisify = value => {
120120
}
121121

122122
return Promise.resolve(value)
123-
}
123+
}

0 commit comments

Comments
 (0)