I am using content script and background script.
On tab loading a function is added to the window object.
I will use this example:
window.myFunc = function() {...};
I need to use myFunction from the background script, but because background is running on diffrent window - myFunc is not accessible
How can I use myFunc from the background script?