|
|
@@ -341,9 +341,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
const content = await util.getContent(resourceURL, {
|
|
|
asBinary,
|
|
|
maxResourceSize: options.maxResourceSize,
|
|
|
- maxResourceSizeEnabled: options.maxResourceSizeEnabled,
|
|
|
- referrerPolicy: options.referrerPolicy,
|
|
|
- credentials: options.credentials
|
|
|
+ maxResourceSizeEnabled: options.maxResourceSizeEnabled
|
|
|
});
|
|
|
indexResource = indexResource + 1;
|
|
|
onloadListener({ url: resourceURL });
|
|
|
@@ -419,9 +417,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
content = await util.getContent(this.baseURI, {
|
|
|
maxResourceSize: this.options.maxResourceSize,
|
|
|
maxResourceSizeEnabled: this.options.maxResourceSizeEnabled,
|
|
|
- charset,
|
|
|
- referrerPolicy: this.options.referrerPolicy,
|
|
|
- credentials: this.options.credentials
|
|
|
+ charset
|
|
|
});
|
|
|
pageContent = content.data;
|
|
|
}
|
|
|
@@ -850,9 +846,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
maxResourceSizeEnabled: this.options.maxResourceSizeEnabled,
|
|
|
url: this.options.url,
|
|
|
charset: this.charset,
|
|
|
- compressCSS: this.options.compressCSS,
|
|
|
- referrerPolicy: this.options.referrerPolicy,
|
|
|
- credentials: this.options.credentials
|
|
|
+ compressCSS: this.options.compressCSS
|
|
|
};
|
|
|
let stylesheetContent;
|
|
|
if (element.tagName.toLowerCase() == "link") {
|
|
|
@@ -1098,9 +1092,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
const content = await util.getContent(resourceURL, {
|
|
|
asBinary: true,
|
|
|
maxResourceSize: this.options.maxResourceSize,
|
|
|
- maxResourceSizeEnabled: this.options.maxResourceSizeEnabled,
|
|
|
- referrerPolicy: this.options.referrerPolicy,
|
|
|
- credentials: this.options.credentials
|
|
|
+ maxResourceSizeEnabled: this.options.maxResourceSizeEnabled
|
|
|
});
|
|
|
scriptElement.setAttribute("src", content.data);
|
|
|
}
|
|
|
@@ -1423,9 +1415,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
const content = await util.getContent(resourceURL, {
|
|
|
maxResourceSize: options.maxResourceSize,
|
|
|
maxResourceSizeEnabled: options.maxResourceSizeEnabled,
|
|
|
- validateTextContentType: true,
|
|
|
- referrerPolicy: options.referrerPolicy,
|
|
|
- credentials: options.credentials
|
|
|
+ validateTextContentType: true
|
|
|
});
|
|
|
resourceURL = content.resourceURL;
|
|
|
let importedStylesheetContent = Util.removeCssComments(content.data);
|
|
|
@@ -1491,9 +1481,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
const content = await util.getContent(resourceURL, {
|
|
|
maxResourceSize: options.maxResourceSize,
|
|
|
maxResourceSizeEnabled: options.maxResourceSizeEnabled,
|
|
|
- charset: options.charset,
|
|
|
- referrerPolicy: options.referrerPolicy,
|
|
|
- credentials: options.credentials
|
|
|
+ charset: options.charset
|
|
|
});
|
|
|
resourceURL = content.resourceURL;
|
|
|
let stylesheetContent = Util.removeCssComments(content.data);
|