add credential check to config.js
This commit is contained in:
parent
191936fde7
commit
f5403c7af1
@ -3,6 +3,11 @@ import {request, goToPage, getURIData} from "./utils.js";
|
||||
window.addEventListener("DOMContentLoaded", init);
|
||||
|
||||
async function init () {
|
||||
let cookie = document.cookie;
|
||||
if (cookie === "") {
|
||||
goToPage("login.html");
|
||||
}
|
||||
|
||||
let uriData = getURIData();
|
||||
let node = uriData.node;
|
||||
let type = uriData.type;
|
||||
|
Loading…
Reference in New Issue
Block a user