aboutsummaryrefslogtreecommitdiff
path: root/bg
diff options
context:
space:
mode:
Diffstat (limited to 'bg')
-rw-r--r--bg/ResponseProcessor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bg/ResponseProcessor.js b/bg/ResponseProcessor.js
index d964dab..0340a6f 100644
--- a/bg/ResponseProcessor.js
+++ b/bg/ResponseProcessor.js
@@ -117,7 +117,7 @@ class ResponseTextFilter {
} catch (e) {
console.error(e);
}
- if (editedText !== null) {
+ if (editedText !== null && editedText.indexOf('/* LibreJS: script accepted') !== 0) {
// we changed the content, let's re-encode
let encoded = new TextEncoder().encode(editedText);
// pre-pending the UTF-8 BOM will force the charset per HTML 5 specs