|
|
@@ -111,7 +111,7 @@ this.singlefile.lib.helper = this.singlefile.lib.helper || (() => {
|
|
|
}
|
|
|
|
|
|
function preProcessDoc(doc, win, options) {
|
|
|
- doc.querySelectorAll("noscript").forEach(element => {
|
|
|
+ doc.querySelectorAll("noscript:not([" + DISABLED_NOSCRIPT_ATTRIBUTE_NAME + "])").forEach(element => {
|
|
|
element.setAttribute(DISABLED_NOSCRIPT_ATTRIBUTE_NAME, element.textContent);
|
|
|
element.textContent = "";
|
|
|
});
|