Adjust encoder/decoder fallbacks (#750)
* Adjust encoder/decoder fallbacks * Dep-dup is functions * Complexity cleanups
This commit is contained in:
@@ -4,5 +4,5 @@
|
||||
import Fallback from './fallback';
|
||||
|
||||
export default typeof TextDecoder === 'undefined'
|
||||
? Fallback
|
||||
? Fallback as unknown as typeof TextDecoder
|
||||
: TextDecoder;
|
||||
|
||||
Reference in New Issue
Block a user