@samitouri / QOS-React / commits / c9920f0954

Added a few inline comments

Brian Vaughn committed Mar 18, 2019 at 09:20 UTC c9920f095457e39c4c8f060c5a6d14c7a8f0cd6f
2 files changed +5
shells/browser/shared/src/main.js
+2
@@ -32,9 +32,11 @@ function createPanelIfReactLoaded() {
32
33 let bridge = null;
34 let store = null;
35 +
36 let elementsPortalContainer = null;
37 let profilerPortalContainer = null;
38 let settingsPortalContainer = null;
39 +
40 let cloneStyleTags = null;
41 let render = null;
42
shells/browser/shared/src/panel.js
+3
@@ -1,7 +1,10 @@
1 +// Portal target container.
2 window.container = document.getElementById('container');
3
4 let hasInjectedStyles = false;
5
6 +// DevTools styles are injected into the top-level document head (where the main React app is rendered).
7 +// This method copies those styles to the child window where each panel (e.g. Elements, Profiler) is portaled.
8 window.injectStyles = getLinkTags => {
9 if (!hasInjectedStyles) {
10 hasInjectedStyles = true;