Skip to content

Commit

Permalink
fix: cache-busting external resources
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrannychaseroperation committed Dec 2, 2024
1 parent 93fbf76 commit 38e94c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 38e94c9

Please sign in to comment.