extension/backend/background.js
//runs after receiving message from the content script, it keeps track of the tab.id data when the recoil function in currently running on for reference
runs after receiving message from the content script, it keeps track of the tab.id data when the recoil function in currently running on for reference
runs after receiving message from the content script it keeps track of the tab . id data when the recoil function in currently running on for reference
function handleMessage(request, sender, sendResponse) {
  if(sender.tab) {
    const tabID = sender.tab.id;
    if (tabID in connectedTabs) {
      connectedTabs[tabID].postMessage(request);
    }
  }
  return Promise.resolve('Filler resolution for the browser');
}
function handleMessage ( request , sender , sendResponse ) { if ( sender . tab ) { const tabID = sender . tab . id ; if ( tabID in connectedTabs ) { connectedTabs [ tabID ] . postMessage ( request ) ; } } return Promise . resolve ( 'Filler resolution for the browser' ) ; }
runs after receiving message from the content script, it keeps track of the tab.id data when the recoil function in currently running on for reference
runs after receiving message from the content script it keeps track of the tab . id data when the recoil function in currently running on for reference