Open nearsyh opened 10 years ago
Seems impossible with the apI of the current version.
Line 131 of https://github.com/breach/breach_core/blob/master/lib/core_tabs.js Also I think the tabs_state has this information (shrug)
@kylekinkade the visibile_tab is private which I think is not good to use.
@nearsyh @kylekinkade it's definitely not accessible from other moduiles... that's why you want tabs_get
from modules
@spolu Thanks! But maybe adding an api for this is a good idea.
@nearsyh You mean have direct access to the visible tab?
Yes.
@spolu If you would like I can make a PR for a tabs_current
method that traverses the array provided by tabs_get
and returns the current tab? Unless you have other plans.
Sure that could be useful!
Is it possible to get the current foreground tab id?