Home / File/ shared.js — react Source File

shared.js — react Source File

Architecture documentation for shared.js, a javascript file in the react codebase.

Entity Profile

Source Code

/* globals chrome */

'use strict';

document.addEventListener('DOMContentLoaded', function () {
  // Make links work
  const links = document.getElementsByTagName('a');
  for (let i = 0; i < links.length; i++) {
    (function () {
      const ln = links[i];
      const location = ln.href;
      ln.onclick = function () {
        chrome.tabs.create({active: true, url: location});
        return false;
      };
    })();
  }

  // Work around https://bugs.chromium.org/p/chromium/issues/detail?id=428044
  document.body.style.opacity = 0;
  document.body.style.transition = 'opacity ease-out .4s';
  requestAnimationFrame(function () {
    document.body.style.opacity = 1;
  });
});

Frequently Asked Questions

What does shared.js do?
shared.js is a source file in the react codebase, written in javascript.
Where is shared.js in the architecture?
shared.js is located at packages/react-devtools-extensions/popups/shared.js (directory: packages/react-devtools-extensions/popups).

Analyze Your Own Codebase

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

Try Supermodel Free