diff options
| author | 8cy <[email protected]> | 2020-06-02 10:24:13 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-06-02 10:24:13 -0700 |
| commit | 2321b2a0acaa0cba14dc38633cd46adee838294c (patch) | |
| tree | e556c69fc7fdb3d7afa7a1a4fd6b381112db126f /js/redirect-to-desktop.js | |
| download | kyzer.co-admin-2321b2a0acaa0cba14dc38633cd46adee838294c.tar.xz kyzer.co-admin-2321b2a0acaa0cba14dc38633cd46adee838294c.zip | |
Initial commit
Diffstat (limited to 'js/redirect-to-desktop.js')
| -rw-r--r-- | js/redirect-to-desktop.js | 5 |
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 = '/'; +} |