diff --git a/extensions/postLoadDelay/postLoadDelay.js b/extensions/postLoadDelay/postLoadDelay.js index 123c6927..c8e95533 100644 --- a/extensions/postLoadDelay/postLoadDelay.js +++ b/extensions/postLoadDelay/postLoadDelay.js @@ -16,7 +16,7 @@ module.exports = function (phantomas) { // https://github.com/GoogleChrome/puppeteer/blob/v1.11.0/docs/api.md#framewaitforselectororfunctionortimeout-options-args phantomas.log("Will wait %d second(s) after load", delay); - phantomas.on("beforeClose", async (page) => { + phantomas.on("beforeClose", async () => { phantomas.log("Sleeping for %d seconds", delay); return setTimeout(delay * 1000);