I am calling my background.js file from content script but i don’t know how to open my popup.html file like normally it’s open when we click on extension icon.
background.js
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
if (request.message == 'buttonClicked') {
console.log(request.message)
chrome.tabs.update({
active: true,
url: 'sidepopup.html'
}, null);
}
});