mirror of
https://github.com/intergalacticalvariable/reader.git
synced 2024-11-16 11:42:32 +08:00
fix: Make the salvage
method private in the puppeteer
service
This commit is contained in:
parent
ef138360c2
commit
888546e064
|
@ -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, {
|
||||
|
|
Loading…
Reference in New Issue
Block a user