Tutorial: Window.blur

Window.blur

Removes focus from the window

Example

async function blurWindow() {
    const app = await fin.Application.create({
        name: 'myApp',
        uuid: 'app-1',
        url: 'https://cdn.openfin.co/docs/javascript/stable/tutorial-Window.blur.html',
        autoShow: true
    });
    await app.run();
    const win = await app.getWindow();
    return await win.blur();
}

blurWindow().then(() => console.log('Blured Window')).catch(err => console.log(err));