diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/index.ts | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/index.ts b/src/index.ts index 9216a0a..58d4367 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,6 +20,14 @@ import styles from './styles'; import watch_credits from './watch_credits'; -styles(); -fullscreen_credits(); -watch_credits(); +function main () { + styles(); + fullscreen_credits(); + watch_credits(); +} + + +main(); + +// Reinitialise when the page changes. +window.onpopstate = main; |