mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: prevent loading external resources twice
This commit is contained in:
parent
e9fddd2456
commit
de36965017
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue