From c5028a27c55112f942bcbd27f3d1d1d846aafddb Mon Sep 17 00:00:00 2001 From: sacrosanctic Date: Mon, 23 Sep 2024 20:32:11 +0800 Subject: [PATCH] docs: Update 7guis-timer example to support SSR context (#13356) * Update 7guis-timer * remove window reference on variable init * better still * prettier --------- Co-authored-by: Rich Harris Co-authored-by: Rich Harris --- .../20-7guis/04-7guis-timer/App.svelte | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/documentation/examples/20-7guis/04-7guis-timer/App.svelte b/documentation/examples/20-7guis/04-7guis-timer/App.svelte index dab2d6de44..14103e424b 100644 --- a/documentation/examples/20-7guis/04-7guis-timer/App.svelte +++ b/documentation/examples/20-7guis/04-7guis-timer/App.svelte @@ -1,31 +1,30 @@
{(elapsed / 1000).toFixed(1)}s