|
|
@@ -46,8 +46,8 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
await this.processor.loadPage();
|
|
|
await this.processor.initialize();
|
|
|
}
|
|
|
- async preparePageData() {
|
|
|
- await this.processor.preparePageData();
|
|
|
+ async run() {
|
|
|
+ await this.processor.run();
|
|
|
}
|
|
|
async getPageData() {
|
|
|
return this.processor.getPageData();
|
|
|
@@ -173,7 +173,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- async preparePageData() {
|
|
|
+ async run() {
|
|
|
if (!this.options.windowId) {
|
|
|
this.processor.initialize(this.batchRequest);
|
|
|
this.onprogress(new ProgressEvent(RESOURCES_INITIALIZED, { pageURL: this.options.url, index: 0, max: this.processor.maxResources }));
|
|
|
@@ -772,7 +772,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
if (frameData) {
|
|
|
if (frameData.processor) {
|
|
|
this.stats.add("processed", "frames", 1);
|
|
|
- await frameData.processor.preparePageData();
|
|
|
+ await frameData.processor.run();
|
|
|
const pageData = await frameData.processor.getPageData();
|
|
|
frameElement.removeAttribute(DOM.windowIdAttributeName(this.options.sessionId));
|
|
|
if (pageData.content.match(NOSCRIPT_TAG_FOUND) || pageData.content.match(SCRIPT_TAG_FOUND)) {
|