Skip to content

Commit

Permalink
another show controls method
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiepine committed Oct 10, 2023
1 parent a2220f7 commit 224d48d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const router = createBrowserRouter(routes);

function App() {
const domEl = useRef<HTMLDivElement>(null);
const showControls = window.location.search.includes('showControls');
const showControls =
window.location.search.includes('showControls') ||
localStorage.getItem('showControls') === 'true';

const downloadImage = async () => {
// Define a CSS rule to hide scrollbars
Expand Down

0 comments on commit 224d48d

Please sign in to comment.