I am working on a fork of the Twitter online client. ( Streamie , if you're interested.) I would like to improve Chrome notifications using HTML notifications instead of static ones. now uses.
The problem is that I need to get the twist object from the main page before the notification, and I'm not sure how to do it. In my Chrome extension, I circumvented this by creating an array with a queue of tweets to show by adding a function to the window object that returns queue.shift () and then calling that function through chrome.extension.getBackgroundPage().dequeueMsg();.
However, I obviously do not have this option in the web client. Is there a way to contact the notification with the window that opens it or from the page to the DOM notification?
source
share