Add shims for x-* (not used, convenience) (#1282)
* Add shims for x-* (not used, convenience) * Update packages/x-ws/src/shim.ts * Remove (now) unused dependencies
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// Copyright 2017-2021 @polkadot/x-textdecoder authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { xglobal } from '@polkadot/x-global';
|
||||
import { TextDecoder } from '@polkadot/x-textdecoder';
|
||||
|
||||
if (typeof xglobal.TextDecoder !== 'function') {
|
||||
(xglobal as Record<string, unknown>).TextDecoder = TextDecoder;
|
||||
}
|
||||
Reference in New Issue
Block a user