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