diff --git a/ui-v2/app/index.html b/ui-v2/app/index.html index 1cc4683750..f88cc23e4c 100644 --- a/ui-v2/app/index.html +++ b/ui-v2/app/index.html @@ -25,6 +25,17 @@ {{content-for "body"}} + {{content-for "body-footer"}} diff --git a/ui-v2/app/utils/atob.js b/ui-v2/app/utils/atob.js index f2df4317ee..bf3960bc41 100644 --- a/ui-v2/app/utils/atob.js +++ b/ui-v2/app/utils/atob.js @@ -1,9 +1,6 @@ -import TextEncoding from 'npm:text-encoding'; import base64js from 'npm:base64-js'; export default function(str, encoding = 'utf-8') { // decode const bytes = base64js.toByteArray(str); - return new ('TextDecoder' in window ? TextDecoder : TextEncoding.TextDecoder)(encoding).decode( - bytes - ); + return new TextDecoder(encoding).decode(bytes); } diff --git a/ui-v2/app/utils/btoa.js b/ui-v2/app/utils/btoa.js index ae1c058adb..47aedc8766 100644 --- a/ui-v2/app/utils/btoa.js +++ b/ui-v2/app/utils/btoa.js @@ -1,7 +1,6 @@ -import TextEncoding from 'npm:text-encoding'; import base64js from 'npm:base64-js'; export default function(str, encoding = 'utf-8') { // encode - const bytes = new ('TextEncoder' in window ? TextEncoder : TextEncoding.TextEncoder)(encoding).encode(str); + const bytes = new TextEncoder(encoding).encode(str); return base64js.fromByteArray(bytes); } diff --git a/ui-v2/ember-cli-build.js b/ui-v2/ember-cli-build.js index a82f0478c6..46e24575a3 100644 --- a/ui-v2/ember-cli-build.js +++ b/ui-v2/ember-cli-build.js @@ -65,6 +65,8 @@ module.exports = function(defaults) { // modules that you would like to import into your application // please specify an object with the list of modules as keys // along with the exports of each module as its value. + app.import('node_modules/text-encoding/lib/encoding-indexes.js', {outputFile: 'assets/encoding-indexes.js'}) + app.import('node_modules/text-encoding/lib/encoding.js', {outputFile: 'assets/encoding.js'}) let tree = app.toTree(); return tree; };