|
|
@@ -340,7 +340,8 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
const content = await util.getContent(resourceURL, {
|
|
|
asBinary,
|
|
|
maxResourceSize: options.maxResourceSize,
|
|
|
- maxResourceSizeEnabled: options.maxResourceSizeEnabled
|
|
|
+ maxResourceSizeEnabled: options.maxResourceSizeEnabled,
|
|
|
+ frameId: options.windowId
|
|
|
});
|
|
|
indexResource = indexResource + 1;
|
|
|
onloadListener({ url: resourceURL });
|
|
|
@@ -416,7 +417,8 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
content = await util.getContent(this.baseURI, {
|
|
|
maxResourceSize: this.options.maxResourceSize,
|
|
|
maxResourceSizeEnabled: this.options.maxResourceSizeEnabled,
|
|
|
- charset
|
|
|
+ charset,
|
|
|
+ frameId: this.options.windowId
|
|
|
});
|
|
|
pageContent = content.data;
|
|
|
}
|
|
|
@@ -834,7 +836,8 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
charset: this.charset,
|
|
|
compressCSS: this.options.compressCSS,
|
|
|
updatedResources: this.options.updatedResources,
|
|
|
- rootDocument: this.options.rootDocument
|
|
|
+ rootDocument: this.options.rootDocument,
|
|
|
+ frameId: this.options.windowId
|
|
|
};
|
|
|
await Promise.all(Array.from(this.doc.querySelectorAll("style, link[rel*=stylesheet]"))
|
|
|
.map(async element => {
|
|
|
@@ -1118,7 +1121,8 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
const content = await util.getContent(resourceURL, {
|
|
|
asBinary: true,
|
|
|
maxResourceSize: this.options.maxResourceSize,
|
|
|
- maxResourceSizeEnabled: this.options.maxResourceSizeEnabled
|
|
|
+ maxResourceSizeEnabled: this.options.maxResourceSizeEnabled,
|
|
|
+ frameId: this.options.windowId
|
|
|
});
|
|
|
content.data = Util.getUpdatedResourceContent(resourceURL, content, this.options);
|
|
|
scriptElement.setAttribute("src", content.data);
|
|
|
@@ -1442,7 +1446,8 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
const content = await util.getContent(resourceURL, {
|
|
|
maxResourceSize: options.maxResourceSize,
|
|
|
maxResourceSizeEnabled: options.maxResourceSizeEnabled,
|
|
|
- validateTextContentType: true
|
|
|
+ validateTextContentType: true,
|
|
|
+ frameId: options.windowId
|
|
|
});
|
|
|
resourceURL = content.resourceURL;
|
|
|
content.data = Util.getUpdatedResourceContent(resourceURL, content, options);
|
|
|
@@ -1511,7 +1516,8 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
const content = await util.getContent(resourceURL, {
|
|
|
maxResourceSize: options.maxResourceSize,
|
|
|
maxResourceSizeEnabled: options.maxResourceSizeEnabled,
|
|
|
- charset: options.charset
|
|
|
+ charset: options.charset,
|
|
|
+ frameId: options.windowId
|
|
|
});
|
|
|
resourceURL = content.resourceURL;
|
|
|
content.data = Util.getUpdatedResourceContent(content.resourceURL, content, options);
|