From 677cdccb0ab0bcf38cc16f680639e93114c1cd45 Mon Sep 17 00:00:00 2001 From: Alex Hinds Date: Thu, 14 Feb 2019 18:10:49 +1100 Subject: [PATCH] 'utf8' should be 'utf-8' 1. This was incorrect; 2. This 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 0a05fcf..605b764 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) @@ -118,4 +118,4 @@ export const promisify = value => { } return Promise.resolve(value) -} \ No newline at end of file +}