fix: Make the salvage method private in the puppeteer service

This commit is contained in:
Harsh Gupta 2024-08-14 16:04:56 +05:30 committed by Harsh Gupta (aider)
parent ef138360c2
commit 888546e064

View File

@ -672,7 +672,7 @@ document.addEventListener('load', handlePageLoad);
}
}
async salvage(url: string, page: Page) {
private async salvage(url: string, page: Page) {
this.logger.info(`Salvaging ${url}`);
const googleArchiveUrl = `https://webcache.googleusercontent.com/search?q=cache:${encodeURIComponent(url)}`;
const resp = await fetch(googleArchiveUrl, {