Skip to content

[Help]: Polyfill Node util.TextDecoder in Web Extension #165

Discussion options

You must be logged in to vote

From my understanding, I need to polyfill TextDecoder as a Web Extension

That shouldn't be needed anymore. Modern browsers have TextDecoder (and encoder) builtin as globals: https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder#browser_compatibility.

I am using this successfully in my web extensions that need it. Do you have any super special encoding requirements apart from the default ones: https://developer.mozilla.org/en-US/docs/Web/API/Encoding_API/Encodings

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Antyos
Comment options

@jrieken
Comment options

@Antyos
Comment options

Answer selected by Antyos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants