Have the background script maintain a light dictionary -- domain to last unsent message. This way if the popup is closed, users won't lose their content. Create a listener in the background script that will send the message for each page. When the popup opens, make a request to the background script for last unsent message.
Have the background script maintain a light dictionary -- domain to last unsent message. This way if the popup is closed, users won't lose their content. Create a listener in the background script that will send the message for each page. When the popup opens, make a request to the background script for last unsent message.