🗺
Window
Minimize the currently active window
window.todesktop.window.minimize()
Maximize the currently active window
window.todesktop.window.maximize()
Unmaximizes the currently active window
window.todesktop.window.unmaximize()
Sets the currently active window to fullscreen
window.todesktop.window.fullscreen()
Unsets the currently active window to fullscreen
window.todesktop.window.unfullscreen()
window.todesktop.on('window.enter-full-screen', () => {
console.log('window is now in fullscreen mode')
});
window.todesktop.on('window.leave-full-screen', () => {
console.log('window has left fullscreen mode')
});
Last modified 2yr ago