summaryrefslogblamecommitdiffstats
path: root/dist/js/about.js
blob: cc12495719e04c796387dce4e9fec9eb7df06cae (plain) (tree)
1
2
3
 

                                                                                                                                                                                       

async function checkLogin(){localforage.getItem("logged_in").then(function(value){if(value!==true){window.location.replace("/index.html");}}).catch(function(err){console.log(err);});}
document.addEventListener("DOMContentLoaded",()=>{checkLogin();const menus=document.querySelectorAll(".side-menu");M.Sidenav.init(menus,{edge:"right",draggable:true});});