Tutorial: Window.getCurrent

Window.getCurrent

Asynchronously returns a Window object that represents the current window

Example

fin.Window.getCurrent()
.then(wnd => console.log('current window'))
.catch(err => console.log(err));