feat(INDA-383): daily stats.
[ProtonMail-WebClient.git] / .yarn / patches / rfc2047-npm-2.0.1-60a2a07c99.patch
bloba77d94a9984f50271502d5cad3da0f84bbffb402
1 diff --git a/lib/rfc2047.js b/lib/rfc2047.js
2 index 1b4c4ed092e6a9924eb66ed54c39492c4b4be879..f19de69025fb900da5009587210992dbd21082d0 100644
3 --- a/lib/rfc2047.js
4 +++ b/lib/rfc2047.js
5 @@ -68,7 +68,8 @@ function decodeEncodedWord(encodedText, encoding, charset) {
6 charset = 'CP949';
8 var decoded;
9 - if (iconv) {
10 + // When iconv is not polyfilled, webpack sets it to {} so checking for `undefined` is not enough
11 + if (iconv.Iconv) {
12 var converter;
13 try {
14 converter = new iconv.Iconv(charset, 'utf-8//TRANSLIT');