lint
This commit is contained in:
parent
0f1d01e4c8
commit
0b03ea9de2
|
|
@ -1,5 +1,5 @@
|
||||||
const puppeteer = require("puppeteer-core");
|
const puppeteer = require("puppeteer-core");
|
||||||
const chromium = require('@sparticuz/chromium');
|
const chromium = require("@sparticuz/chromium");
|
||||||
|
|
||||||
const handler = async () => {
|
const handler = async () => {
|
||||||
try {
|
try {
|
||||||
|
|
@ -21,10 +21,9 @@ const handler = async () => {
|
||||||
await page.close();
|
await page.close();
|
||||||
|
|
||||||
await browser.close();
|
await browser.close();
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error(error.message);
|
throw new Error(error.message);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
handler();
|
handler().then(() => console.log("Done"));
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
const puppeteer = require("puppeteer-core");
|
const puppeteer = require("puppeteer-core");
|
||||||
const chromium = require('@sparticuz/chromium');
|
const chromium = require("@sparticuz/chromium");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
handler: async () => {
|
handler: async () => {
|
||||||
|
|
@ -22,9 +22,8 @@ module.exports = {
|
||||||
await page.close();
|
await page.close();
|
||||||
|
|
||||||
await browser.close();
|
await browser.close();
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error(error.message);
|
throw new Error(error.message);
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue