setExtensionIconAndPopup() — react Function Reference
Architecture documentation for the setExtensionIconAndPopup() function in setExtensionIconAndPopup.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 23723a6a_b351_4cd5_82b1_6bf19241f7f6["setExtensionIconAndPopup()"] 4b8a7c87_1596_2be3_f723_57bdcb2fa279["setExtensionIconAndPopup.js"] 23723a6a_b351_4cd5_82b1_6bf19241f7f6 -->|defined in| 4b8a7c87_1596_2be3_f723_57bdcb2fa279 2fe6a96a_1dab_af25_2a49_b34f3ef08485["handleReactDevToolsHookMessage()"] 2fe6a96a_1dab_af25_2a49_b34f3ef08485 -->|calls| 23723a6a_b351_4cd5_82b1_6bf19241f7f6 2e53b28a_18a6_2489_2522_aa515121fc2c["checkAndHandleRestrictedPageIfSo()"] 2e53b28a_18a6_2489_2522_aa515121fc2c -->|calls| 23723a6a_b351_4cd5_82b1_6bf19241f7f6 style 23723a6a_b351_4cd5_82b1_6bf19241f7f6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-extensions/src/background/setExtensionIconAndPopup.js lines 5–20
function setExtensionIconAndPopup(reactBuildType, tabId) {
chrome.action.setIcon({
tabId,
path: {
'16': chrome.runtime.getURL(`icons/16-${reactBuildType}.png`),
'32': chrome.runtime.getURL(`icons/32-${reactBuildType}.png`),
'48': chrome.runtime.getURL(`icons/48-${reactBuildType}.png`),
'128': chrome.runtime.getURL(`icons/128-${reactBuildType}.png`),
},
});
chrome.action.setPopup({
tabId,
popup: chrome.runtime.getURL(`popups/${reactBuildType}.html`),
});
}
Domain
Subdomains
Source
Frequently Asked Questions
What does setExtensionIconAndPopup() do?
setExtensionIconAndPopup() is a function in the react codebase, defined in packages/react-devtools-extensions/src/background/setExtensionIconAndPopup.js.
Where is setExtensionIconAndPopup() defined?
setExtensionIconAndPopup() is defined in packages/react-devtools-extensions/src/background/setExtensionIconAndPopup.js at line 5.
What calls setExtensionIconAndPopup()?
setExtensionIconAndPopup() is called by 2 function(s): checkAndHandleRestrictedPageIfSo, handleReactDevToolsHookMessage.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free