From 7b7c7c469a02b9b4209d959b06613a6f176cf32b Mon Sep 17 00:00:00 2001 From: rstular Date: Sun, 17 May 2020 12:35:12 +0200 Subject: Deleting duplicate files --- dist/js/js/about.js | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 dist/js/js/about.js (limited to 'dist/js/js/about.js') diff --git a/dist/js/js/about.js b/dist/js/js/about.js deleted file mode 100644 index 7056b06..0000000 --- a/dist/js/js/about.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Redirects user to login page if it's not logged int - */ -async function checkLogin() { - localforage.getItem("logged_in").then(function (value) { - // This code runs once the value has been loaded - // from the offline store. - if (value !== true) { - window.location.replace("/index.html"); - } - }).catch(function (err) { - // This code runs if there were any errors - console.log(err); - }); -} - -document.addEventListener("DOMContentLoaded", () => { - checkLogin(); - - // Setup side menu - const menus = document.querySelectorAll(".side-menu"); - M.Sidenav.init(menus, { edge: "right", draggable: true }); -}); -- cgit v1.2.3