javascript - Polyfill for TextDecoder -
i'm using fetch
, have included whatwg-fetch
polyfill in application.
i employ textdecoder
described in jake archibald's blog that's fetch! decode response, i'm not sure polyfill use.
(currently safari complains referenceerror: can't find variable: textdecoder
)
i'm guessing there's polyfill textdecoder
, i'm not finding it...
i able solve problem using text-encoding
library
npm install text-encoding --save
along
import encoding 'text-encoding'; const decoder = new encoding.textdecoder();
Comments
Post a Comment