My content.js sends chrome.runtime.sendMessage and popup.js will get the chrome.runtime.onMessage.addListener.
Currently, I can only receive the message if the Popup Icon is being clicked.
My questions are:
- How can I receive the - chrome.runtime.onMessage.addListenereven if the Popup is not open?
- If I open the Popup Extension and close it, how can I still receive the - chrome.runtime.onMessage.addListenerfrom content.js?
