Tutorial: Window.getParentApplication

Window.getParentApplication

Gets the parent application

Example

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

getParentApplication().then(parentApplication => console.log(parentApplication)).catch(err => console.log(err));