summaryrefslogtreecommitdiff
path: root/js/redirect-to-desktop.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/redirect-to-desktop.js')
-rw-r--r--js/redirect-to-desktop.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/redirect-to-desktop.js b/js/redirect-to-desktop.js
new file mode 100644
index 0000000..e621a5d
--- /dev/null
+++ b/js/redirect-to-desktop.js
@@ -0,0 +1,5 @@
+// Checks if user is on desktop
+// 3/29/2020, 13:56, Not very performance cool if I think of it lol
+if (screen.width > 768) {
+ location.href = '/';
+}