|
25 | 25 | } |
26 | 26 |
|
27 | 27 | if (d.getSeconds() == 0) { |
28 | | - if (format(d, "HH:mm") == nightmode_on) { |
| 28 | + if (format(d, "HH:mm") == nightmode_on && auto_nightmode) { |
29 | 29 | on = false; |
30 | 30 | } |
31 | | - if (format(d, "HH:mm") == nightmode_off) { |
| 31 | + if (format(d, "HH:mm") == nightmode_off && auto_nightmode) { |
32 | 32 | on = true; |
33 | 33 | } |
34 | 34 |
|
|
236 | 236 | let theme = $state(getLocalStorage("theme", "lightblue")); |
237 | 237 | let second_settings = $state(getLocalStorage("seconds", 1)); |
238 | 238 | let hour_gong = $state(getLocalStorage("hour", false) == "true"); |
239 | | - let auto_nightmode = $state(getLocalStorage("autonightmode", false) == "true"); |
| 239 | + let auto_nightmode = $state( |
| 240 | + getLocalStorage("autonightmode", false) == "true", |
| 241 | + ); |
240 | 242 | let alarms = $state(JSON.parse(getLocalStorage("alarms", "[]"))); |
241 | 243 | let notifications = $state( |
242 | 244 | JSON.parse(getLocalStorage("notifications", "[]")), |
|
547 | 549 | right to navigate the bottom bar. |
548 | 550 | </p> |
549 | 551 | <p> |
550 | | - You can also swipe to the left on the first page to quickly edit alarms. |
| 552 | + You can also swipe to the left on the first page to quickly edit |
| 553 | + alarms. |
551 | 554 | </p> |
552 | 555 | {/if} |
553 | 556 | </div> |
|
626 | 629 | >Black</button |
627 | 630 | > |
628 | 631 | {:else if page_number == 7} |
629 | | - <button type="button" onclick={() => reset()}>Reset all settings and reload</button> |
| 632 | + <button type="button" onclick={() => reset()} |
| 633 | + >Reset all settings and reload</button |
| 634 | + > |
630 | 635 | {/if} |
631 | 636 | </div> |
632 | 637 | {/key} |
|
0 commit comments