πŸ‘‚
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.
1
window.todesktop.on('show', () => {
2
console.log('menubar window is now visible')
3
});
Copied!

todesktop.on('hide')

Triggered when a menubar window is hidden.
1
window.todesktop.on('hide', () => {
2
console.log('menubar window is now hidden')
3
});
Copied!
Last modified 1yr ago