Skip to content

Commit

Permalink
feat: Change default export type (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
정현 committed Mar 30, 2024
2 parents 023abb1 + ad2ab3a commit b70a09a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/components/ExportToWebpToggle.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { Toggle } from 'konsta/react';
import { useEffect, useState } from 'react';

if (localStorage.getItem('exportToWebp') == null) {
localStorage.setItem('exportToWebp', 'yes');
}

const ExportToWebpToggle = () => {
const [exportToWebp, setExportToWebp] = useState(localStorage.getItem('exportToWebp') || 'no');

Expand Down

0 comments on commit b70a09a

Please sign in to comment.