import {getCookie, isAuthenticated} from "./cookiehelper.js"; import {initListIndex} from "./list.index.js"; if (isAuthenticated()) { initListIndex(); } else { window.location = "../login"; }