Skip to content

Commit d172e99

Browse files
fix
1 parent fd0b795 commit d172e99

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

chrome/public/inject.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
const script = document.createElement('script')
1+
const script = document.createElement("script");
22

3-
script.src = chrome.runtime.getURL('bundle/hook.js')
3+
script.src = chrome.runtime.getURL("bundle/hook.js");
44

55
script.onload = () => {
6-
script.remove()
7-
}
6+
script.remove();
7+
};
88

9-
;(document.head || document.documentElement).appendChild(script)
9+
if (!window["__MY_REACT_DEVTOOL_RUNTIME__"]) {
10+
(document.head || document.documentElement).appendChild(script);
11+
}

0 commit comments

Comments
 (0)