👂 Menubar Window Events

We include some event listeners that are specific to menubar. Allowing you to perform an action when a menubar is hidden or shown.

todesktop.on('show')

Triggered when a menubar window is shown.

window.todesktop.on('show', () => {
console.log('menubar window is now visible')
});

todesktop.on('hide')

Triggered when a menubar window is hidden.

window.todesktop.on('hide', () => {
console.log('menubar window is now hidden')
});