Skip to content

Commit

Permalink
Replace text-encoding polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
adroitwhiz committed Mar 10, 2021
1 parent e369e4a commit e59b316
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"core-js": "2.5.7",
"css-loader": "^1.0.0",
"es6-object-assign": "1.1.0",
"fastestsmallesttextencoderdecoder": "^1.0.22",
"file-loader": "2.0.0",
"get-float-time-domain-data": "0.1.0",
"get-user-media-promise": "1.1.4",
Expand Down Expand Up @@ -83,7 +84,6 @@
"scratch-svg-renderer": "0.2.0-prerelease.20210107222546",
"startaudiocontext": "1.2.1",
"style-loader": "^0.23.0",
"text-encoding": "0.7.0",
"to-style": "1.3.3",
"wav-encoder": "1.3.0",
"xhr": "2.5.0"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/default-project/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import costume2 from '!raw-loader!./0fb9be3e8397c983338cb71dc84d0b25.svg';
const defaultProject = translator => {
let _TextEncoder;
if (typeof TextEncoder === 'undefined') {
_TextEncoder = require('text-encoding').TextEncoder;
_TextEncoder = require('fastestsmallesttextencoderdecoder').TextEncoder;
} else {
/* global TextEncoder */
_TextEncoder = TextEncoder;
Expand Down

0 comments on commit e59b316

Please sign in to comment.