I am learning to code and starting with browser plugins for practice. I have a plugin project where I have to do the following:
I think I have step 1 working right with the code below (I tested it with console.log statements.
chrome.tabs.onActivated.addListener(tab =\> {
chrome.tabs.get(tab.tabId, current_tab_info =\> {
});
});
If this is correct, what code should I add inside the chrome.tabs.get function to make steps 2 and 3 above work as intended?
Thank you for your support.
Best, N
The code above works fine, I am not sure how to proceed with steps 2 and 3 above.