~kylehuff/webpg-firefox/master

« back to all changes in this revision

Viewing changes to extension/webmail/gmail/gmail.js

  • Committer: kylehuff
  • Date: 2014-05-27 21:52:14 UTC
  • Revision ID: git-v1:b5363e370102429b116dc1d1ebcc3f09584cd5bf
Merge common objects from webpg-chrome

Show diffs side-by-side

added added

removed removed

Lines of Context:
1137
1137
                    }
1138
1138
 
1139
1139
// FIXME: the qp decodeder doesn't work well.
1140
 
//                    if (dataEncoding === 'quoted_printable' ||
1141
 
//                        dataEncoding === 'quoted-printable')
1142
 
//                      data = webpg.utils.quoted_printable_decode(data);
1143
 
//                    else if (dataEncoding === 'base64')
1144
 
//                      data = webpg.utils.base64_decode(data);
 
1140
                    if (dataEncoding === 'quoted_printable' ||
 
1141
                        dataEncoding === 'quoted-printable')
 
1142
                      data = webpg.utils.quoted_printable_decode(data);
 
1143
                    else if (dataEncoding === 'base64')
 
1144
                      data = webpg.utils.base64_decode(data);
1145
1145
 
1146
 
//                    if (encoding === 'quoted_printable' ||
1147
 
//                        encoding === 'quoted-printable')
1148
 
//                      signature = (webpg.utils.quoted_printable_decode(signature) || null);
1149
 
//                    else if (encoding === 'base64')
1150
 
//                      signature = (webpg.utils.base64(signature) || null);
 
1146
                    if (encoding === 'quoted_printable' ||
 
1147
                        encoding === 'quoted-printable')
 
1148
                      signature = (webpg.utils.quoted_printable_decode(signature) || null);
 
1149
                    else if (encoding === 'base64')
 
1150
                      signature = (webpg.utils.base64(signature) || null);
1151
1151
 
1152
1152
                    var doc = (node.ownerDocument || webpg.inline.doc || content.document || document);
1153
1153