Tutorial: Window.getZoomLevel

Window.getZoomLevel

Returns the zoom level of the window

Example

async function createWin() {
    const app = await fin.Application.create({
        name: 'myApp',
        uuid: 'app-1',
        url: 'https://www.openfin.co',
        autoShow: true
    });
    await app.run();
    return await app.getWindow();
}

async function getZoomLevel() {
    const app = await createWin();
    return await app.getZoomLevel();
}

getZoomLevel().then(zoomLevel => console.log(zoomLevel)).catch(err => console.log(err));