fix: cache-busting external resources

This commit is contained in:
Chubby Granny Chaser 2024-12-02 18:44:03 +00:00
parent 93fbf7657d
commit 38e94c92d7
No known key found for this signature in database

View File

@ -138,7 +138,7 @@ export function App() {
})
.finally(() => {
const $script = document.createElement("script");
$script.src = import.meta.env.RENDERER_VITE_EXTERNAL_RESOURCES_URL;
$script.src = `${import.meta.env.RENDERER_VITE_EXTERNAL_RESOURCES_URL}?t=${Date.now()}`;
document.head.appendChild($script);
});
}, [fetchUserDetails, syncFriendRequests, updateUserDetails, dispatch]);