diff --git a/src/index.tsx b/src/index.tsx index acf8746ac..fcab4b3a2 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -16,3 +16,8 @@ const domNode = document.getElementById('root'); if (domNode) { createRoot(domNode).render(
); } + +// https://vite.dev/guide/build#load-error-handling +window.addEventListener('vite:preloadError', () => { + window.location.reload(); +}); \ No newline at end of file