import Main from './components/Main.svelte'; import gateway from './gateway'; import { getItem, init } from './storage'; import { authWithToken, useAuthHandlers } from './auth'; import { initResponsiveHandlers } from './responsive'; window.__waffle = { gateway }; init(); initResponsiveHandlers(); useAuthHandlers(); authWithToken(getItem("auth:token")); // Remove loading screen const loadingElement = document.getElementById("pre--loading-screen"); if (loadingElement) { loadingElement.parentElement.removeChild(loadingElement); } const app = new Main({ target: document.body }); export default app;