Correctly display elapsed in the tutorial example

Otherwise people learning svelte will see a `This page has been open for undefined seconds`
pull/6060/head
Francesco Sardo 6 years ago committed by GitHub
parent ce3a579125
commit a889828987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,5 +14,5 @@ const start = new Date();
export const elapsed = derived(
time,
$time => {}
);
$time => Math.round(($time - start) / 1000)
);

Loading…
Cancel
Save