From 00a6e8aa8dd06f8a2bd7ccccdccfcb6215cf4841 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Tue, 18 Feb 2020 23:34:51 +0100 Subject: Add svelte linting --- app/forum.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app/forum.svelte') diff --git a/app/forum.svelte b/app/forum.svelte index 038f176..bb2513d 100644 --- a/app/forum.svelte +++ b/app/forum.svelte @@ -20,14 +20,15 @@ const setRoute = function setRoute(targetPage) { return function (routerParams) { + params = routerParams; page = targetPage; - } - } + }; + }; const router = new LightRouter({ routes: { - '': () => page = Home, + '': () => (page = Home) && true, 'f/{id}': setRoute(TopicIndex), 'g/{id}': setRoute(TopicIndex), 'a/{id}': setRoute(Author), -- cgit