aboutsummaryrefslogtreecommitdiff
path: root/interface/public/router.js
diff options
context:
space:
mode:
Diffstat (limited to 'interface/public/router.js')
-rw-r--r--interface/public/router.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/interface/public/router.js b/interface/public/router.js
new file mode 100644
index 0000000..23f8115
--- /dev/null
+++ b/interface/public/router.js
@@ -0,0 +1,7 @@
+function route(page) {
+ if (!localStorage.getItem("token")) {
+ $("#loginButton").click();
+ } else {
+ window.location.href = page;
+ }
+} \ No newline at end of file