never mind turns out addEventListener('focus'/'blur')
on the main js file works fine
listen for focus/blur on nsiWindowWatcher or nsiWindowMediator? for firefox extension
-
30-06-2022 - |
Pergunta
I would like to find out whether or not the main browser window is focused. Is this possible to achieve using nsiWindowWatcher or nsiWindowMediator? Been trying to digging Mozilla's documentation with no luck so far..
Firefox addon/jetpack is not an option though
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow