Home / File/ setExtensionIconAndPopup.js — react Source File

setExtensionIconAndPopup.js — react Source File

Architecture documentation for setExtensionIconAndPopup.js, a javascript file in the react codebase. 0 imports, 2 dependents.

File javascript BabelCompiler Validation 2 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  cd146827_202a_fba8_b239_a991594bc85b["setExtensionIconAndPopup.js"]
  eda1c637_7f7a_9fee_baa9_c174b535138c["messageHandlers.js"]
  eda1c637_7f7a_9fee_baa9_c174b535138c --> cd146827_202a_fba8_b239_a991594bc85b
  340180c0_7449_8026_336c_23b84d74eda4["tabsManager.js"]
  340180c0_7449_8026_336c_23b84d74eda4 --> cd146827_202a_fba8_b239_a991594bc85b
  style cd146827_202a_fba8_b239_a991594bc85b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/* global chrome */

'use strict';

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`),
  });
}

export default setExtensionIconAndPopup;

Domain

Subdomains

Frequently Asked Questions

What does setExtensionIconAndPopup.js do?
setExtensionIconAndPopup.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in setExtensionIconAndPopup.js?
setExtensionIconAndPopup.js defines 1 function(s): setExtensionIconAndPopup.
What files import setExtensionIconAndPopup.js?
setExtensionIconAndPopup.js is imported by 2 file(s): messageHandlers.js, tabsManager.js.
Where is setExtensionIconAndPopup.js in the architecture?
setExtensionIconAndPopup.js is located at packages/react-devtools-extensions/src/background/setExtensionIconAndPopup.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-extensions/src/background).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free