diff options
Diffstat (limited to 'js/init.ts')
-rw-r--r-- | js/init.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/init.ts b/js/init.ts new file mode 100644 index 0000000..c306191 --- /dev/null +++ b/js/init.ts @@ -0,0 +1,13 @@ +/// <reference path="navigation.ts" /> +/// <reference path="page.ts" /> +/// <reference path="theme.ts" /> + +function init() { + window.addEventListener("popstate", (_e) => { + location.reload(); + }); + + loadTheme(); + + initImages(); +} |