25
edits
(sessionstore fun) |
Jloganolson (talk | contribs) No edit summary |
||
Line 14: | Line 14: | ||
You can capture the current tab state information from "sessionstore.js". Recreating it is TBD, but see code at http://etherpad.com/OrGP3AA7F5 which reads the session store file and instantiates the JSON object. | You can capture the current tab state information from "sessionstore.js". Recreating it is TBD, but see code at http://etherpad.com/OrGP3AA7F5 which reads the session store file and instantiates the JSON object. | ||
'''Q: How do I see when a tab is opened (as opposed to when it's loaded)?''' | |||
Use a progress listener (https://developer.mozilla.org/en/Code_snippets/Progress_Listeners) with an addTabsProgressListener https://developer.mozilla.org/en/Listening_to_events_on_all_tabs) called per window opened. Will post a Jetpack-specific example when written. |
edits