If you have more than one copy of React DevTools installed and enabled (e.g. the version in the Chrome store and a locally built version) they can interfere with each other.

DevTools should detect this case and warn by showing a dialog in the DevTools UI and/or by logging to the console.

Note that we _should not warn_ if a related tool like Fast Refresh is present, only another copy of DevTools.
sendResponse(true);
    }
  },
);
chrome.runtime.onMessage.addListener((request, sender) => {
  const tab = sender.tab;
  if (tab) {
    const id = tab.id;
    
    
    if (request.hasDetectedReact) {
      
      
      
      setIconAndPopup(request.reactBuildType, id);
    } else {
      switch (request.payload?.type) {
        case 'fetch-file-with-cache-complete':
        case 'fetch-file-with-cache-error':
          
          const devtools = ports[id]?.devtools;
          if (devtools) {
            devtools.postMessage(request);
          }
          break;
      }
    }
  }
});