I've got my extension appending a DOM element when a thread is opened, but I'm trying to have it be removed when the user exits the thread view, so if they go back to the inbox it should remove the DOM element. I've seen gmail.check.is_inside_email() and gmail.get.current_page() but these don't listen for UI page changes, and if possible I'd like to avoid using gmail.observe.register() - would appreciate if someone could point me in the right direction! Thanks!
I've got my extension appending a DOM element when a thread is opened, but I'm trying to have it be removed when the user exits the thread view, so if they go back to the inbox it should remove the DOM element. I've seen
gmail.check.is_inside_email()
andgmail.get.current_page()
but these don't listen for UI page changes, and if possible I'd like to avoid usinggmail.observe.register()
- would appreciate if someone could point me in the right direction! Thanks!