Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async _resizeWindowToFitDevice (device, portrait, currentWidth, currentHeight) {
const { landscapeWidth, portraitWidth } = getViewportSize(device);
const width = portrait ? portraitWidth : landscapeWidth;
const height = portrait ? landscapeWidth : portraitWidth;
return await this._resizeWindow(width, height, currentWidth, currentHeight);
}