Tutorial: Window.getCurrentSync

Window.getCurrentSync

Synchronously returns a Window object that represents the current window

Example

const wnd = fin.Window.getCurrentSync();
const info = await wnd.getInfo();
console.log(info);