my-portfolio/dist/editor/js/editor.js
rodude123 90a3e4f533 Added in editor login feature to login into editor
Signed-off-by: rodude123 <rodude123@gmail.com>
2022-07-29 20:00:36 +01:00

1 line
130 B
JavaScript

document.addEventListener("DOMContentLoaded",(e=>{fetch("/api/user/isLoggedIn").then((e=>{e.ok||(window.location.href="./")}))}));