Move util function from @polkadot/client (#62)

This commit is contained in:
Jaco Greeff
2018-01-11 17:48:38 +01:00
committed by GitHub
parent 561992bbda
commit f20035fe97
14 changed files with 283 additions and 11 deletions
+7
View File
@@ -0,0 +1,7 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// @flow
if (typeof TextEncoder === 'undefined') {
// $FlowFixMe trust me flow, it is there
global.TextEncoder = require('util').TextEncoder;
}