Compare commits

..

3 Commits

View File

@ -25,7 +25,7 @@ app.get('/ipad.png', async (req, res) => {
// TODO: handle timeout better (ie present a better error to the frontend)
await puppet_page.waitForSelector('#loadingSpinner', {
hidden: true,
timeout: 10,
timeout: 10000,
});
const screenshot = await puppet_page.screenshot();
await puppet_page.close();