diff --git a/src/renderer/src/app.tsx b/src/renderer/src/app.tsx index bb2f096a..20810070 100644 --- a/src/renderer/src/app.tsx +++ b/src/renderer/src/app.tsx @@ -137,7 +137,10 @@ export function App() { } }) .finally(() => { + if (document.getElementById("external-resources")) return; + const $script = document.createElement("script"); + $script.id = "external-resources"; $script.src = `${import.meta.env.RENDERER_VITE_EXTERNAL_RESOURCES_URL}?t=${Date.now()}`; document.head.appendChild($script); });