Tutorial: Window.getParentWindow

Window.getParentWindow

Gets the parent window

Example

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

getParentWindow().then(parentWindow => console.log(parentWindow)).catch(err => console.log(err));