diff options
Diffstat (limited to 'src/views/home.pug')
-rw-r--r-- | src/views/home.pug | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/views/home.pug b/src/views/home.pug new file mode 100644 index 0000000..87f6e0a --- /dev/null +++ b/src/views/home.pug | |||
@@ -0,0 +1,13 @@ | |||
1 | include ../mixins/sub | ||
2 | doctype html | ||
3 | html | ||
4 | +subMgmt() | ||
5 | script(async). | ||
6 | window.addEventListener("load", () => { | ||
7 | const url = `/r/${getSubs().join('+')}`; | ||
8 | if (url) { | ||
9 | window.location.href = url; | ||
10 | } else { | ||
11 | window.location.href = '/r/all'; | ||
12 | } | ||
13 | }); | ||