feat: save app state to local storage and remove losing battery

This commit is contained in:
Pihkaal
2024-09-11 17:52:18 +02:00
parent f9f1fda026
commit b49d8f6762
2 changed files with 16 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ export const WaybarBatteryWidget = (props: { frequency: number }) => {
useEffect(() => {
const interval = setInterval(() => {
setBattery((x) => x - 1);
// setBattery((x) => x - 1);
if (battery - 1 === 0) {
// TODO: do something