Skip to content

Commit ad6187d

Browse files
committed
Cosmetic bug fixes.
1 parent f6b7232 commit ad6187d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/bg/RequestUtil.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
{
33
let NULL = new Uint8Array();
4-
let DEFAULT_CHARSET = "utf-8";
4+
55
let xmlFeedOrImage = /^(?:(?:application|text)\/(?:(?:r(?:ss|df)|atom)\+)xml(;|$))|image\//i;
66
let rawXml = /^(?:application|text)\/xml;/i;
77
let brokenOnLoad;

src/lib/ContentMetaData.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ class ContentMetaData {
1717
charset = m[1];
1818
}
1919
}
20-
Object.defineProperty(this, "charset", { value: charset, writable: false, configurable: true })
20+
Object.defineProperty(this, "charset", { value: charset, writable: false, configurable: true });
21+
return charset;
2122
}
2223

2324
createDecoder() {
2425
try {
25-
return new TextDecoder(charset);
26+
return new TextDecoder(this.charset);
2627
} catch (e) {
2728
return new TextDecoder(this.defaultCharset);
2829
}

0 commit comments

Comments
 (0)