Live capture storage changes across different documents

Hi friends, I’m working on a small plugin that copies stuff to the local storage to make content available to other documents. So in on doc I press the copy button and in another I open the same plugin and past stuff. Now when there has nothing been copied (empty in storage) I hide some content inside the iframe. When I press the copy button the iframe content updates. BUT, when I have the plugin already open in another doc I need to reload the plugin to get the same hidden/shown iframe containers. Is there a way to listen to local storage changes and update the content of the plugin live on all other docs?

No way to listen, you can only use polling (setTimeout/setInterval) to check for updates every so often.

Yer makes sense! Thx