Skip to content

Commit

Permalink
fix: remove the inserted script after loading
Browse files Browse the repository at this point in the history
  • Loading branch information
koba04 committed Jul 13, 2022
1 parent 238244d commit 13b4216
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/swr-devtools-extensions/src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const injectDevToolsHook = () => {
script.setAttribute("type", "text/javascript");
script.setAttribute("src", chrome.runtime.getURL("web-accessible.js"));
document.documentElement.appendChild(script);
script.parentNode?.removeChild(script);
};
injectDevToolsHook();

Expand Down

0 comments on commit 13b4216

Please sign in to comment.