We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd0b795 commit d172e99Copy full SHA for d172e99
chrome/public/inject.js
@@ -1,9 +1,11 @@
1
-const script = document.createElement('script')
+const script = document.createElement("script");
2
3
-script.src = chrome.runtime.getURL('bundle/hook.js')
+script.src = chrome.runtime.getURL("bundle/hook.js");
4
5
script.onload = () => {
6
- script.remove()
7
-}
+ script.remove();
+};
8
9
-;(document.head || document.documentElement).appendChild(script)
+if (!window["__MY_REACT_DEVTOOL_RUNTIME__"]) {
10
+ (document.head || document.documentElement).appendChild(script);
11
+}
0 commit comments