diff options
| author | Ben Beltran <ben@nsovocal.com> | 2020-02-18 23:34:51 +0100 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2020-02-18 23:34:51 +0100 |
| commit | 00a6e8aa8dd06f8a2bd7ccccdccfcb6215cf4841 (patch) | |
| tree | 83de2f80c411205d743e59618dfda07d712d1e3f /app/forum.svelte | |
| parent | 41247723b2940efe89648749b90e56d582bdfb89 (diff) | |
Add svelte linting
Diffstat (limited to 'app/forum.svelte')
| -rw-r--r-- | app/forum.svelte | 7 |
1 files changed, 4 insertions, 3 deletions
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), |