Making it work for ESP32

This commit is contained in:
Djuri 2023-11-17 11:09:06 +01:00
parent 287d04bc97
commit ac33a596c7
8 changed files with 80 additions and 19 deletions

View file

@ -13,4 +13,6 @@ export const load: LayoutLoad = async () => {
await waitLocale()
}
export const prerender = true;
export const prerender = true;
export const ssr = false;
export const csr = true;

View file

@ -93,7 +93,7 @@
<hr>
{#if $status.data}
<Rendered status="{$status}"></Rendered>
Screen cycle: <span on:click="{toggleTimer($status.timerRunning)}">{#if $status.timerRunning}&#9205; running{:else}&#9208; stopped{/if}</span>
Screen cycle: <a style="cursor: pointer" on:click="{toggleTimer($status.timerRunning)}">{#if $status.timerRunning}&#9205; running{:else}&#9208; stopped{/if}</a>
{/if}
{/if}
<hr>