Skip to content

Commit 13b4216

Browse files
committed
fix: remove the inserted script after loading
1 parent 238244d commit 13b4216

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/swr-devtools-extensions/src/content.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const injectDevToolsHook = () => {
66
script.setAttribute("type", "text/javascript");
77
script.setAttribute("src", chrome.runtime.getURL("web-accessible.js"));
88
document.documentElement.appendChild(script);
9+
script.parentNode?.removeChild(script);
910
};
1011
injectDevToolsHook();
1112

0 commit comments

Comments
 (0)