From 90ba9db87d13fbbc786b7f789f712e46be24db52 Mon Sep 17 00:00:00 2001 From: Alex Hinds Date: Sun, 10 Mar 2019 11:28:25 +1100 Subject: [PATCH] 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 --- src/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers.js b/src/helpers.js index fd9ef65..7a2eae2 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -8,7 +8,7 @@ export function loadScript (url) { const script = document.createElement('script') script.async = true script.src = url - script.charset = 'utf8' + script.charset = 'utf-8' head.appendChild(script) @@ -120,4 +120,4 @@ export const promisify = value => { } return Promise.resolve(value) -} \ No newline at end of file +}