UNPKG

chrome-aws-lambda

Version:

Chromium Binary for AWS Lambda and Google Cloud Functions

17 lines 503 B
"use strict"; module.exports = async function (page) { await page.evaluateOnNewDocument(() => { if (window.outerHeight === 0) { Object.defineProperty(window, 'outerHeight', { get: () => window.innerHeight, }); } if (window.outerWidth === 0) { Object.defineProperty(window, 'outerWidth', { get: () => window.innerWidth, }); } }); return page; }; //# sourceMappingURL=window.js.map