Skip to content

Commit

Permalink
Fix blank launch screen in Chrome (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli authored Nov 13, 2024
1 parent 1875157 commit 7c71325
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
5 changes: 3 additions & 2 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { useEffect } from 'react';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import SitesInfo from './SitesInfo';
import AddSite from './AddSite';
Expand All @@ -9,9 +10,9 @@ function App() {
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);

window.onload = () => {
useEffect(() => {
document.getElementById('root')?.classList.add('show-content');
};
}, []);

return (
<>
Expand Down
1 change: 1 addition & 0 deletions news/101.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bug where launch screen was blank in Chrome. @davisagli
Loading

0 comments on commit 7c71325

Please sign in to comment.