Reputation: 445
I've written a Firefox extension , that need to know whether menu-bar is present or not. and also need to be notified hide/show of menu-bar ?
How do i do this ? Please help me
Upvotes: 0
Views: 82
Reputation: 5054
Check the autohide
attribute of the toolbar-menubar
.
var menubarPresent = document.getElementById("toolbar-menubar").getAtttribute("autohide") === "false" ? true : false
You can get notified of changes through a MutationObserver
Upvotes: 1