You can use SharedWorker
to commuicate between different browsing contexts.
See Can we refer to javascript variables across webpages in a browser session?
You could alternatively use storage
event Can the mechanism that loads the worker in Shared Web Workers be modified?