/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
status
packages/react-devtools-extensions/popups/shared.js
24 строки
660 B
Brian Vaughn
Fixed a bunch of Lint issues
14 авг 2019, 07:59
14 авг 2019, 07:59
ac2e861
Код
Авторство
О чём код?
/* 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}); }; })(); } // 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; }); });