refactor: add bundle.js in external script environment

This commit is contained in:
JackEnx 2024-12-18 12:25:55 -03:00
parent 1f3a6a9da6
commit 5222d319a3

View file

@ -126,7 +126,7 @@ export function App() {
const $script = document.createElement("script");
$script.id = "external-resources";
$script.src = `${import.meta.env.RENDERER_VITE_EXTERNAL_RESOURCES_URL + "/bundle.js"}?t=${Date.now()}`;
$script.src = `${import.meta.env.RENDERER_VITE_EXTERNAL_RESOURCES_URL}/bundle.js?t=${Date.now()}`;
document.head.appendChild($script);
});
}, [fetchUserDetails, syncFriendRequests, updateUserDetails, dispatch]);