chansung's picture
Upload folder using huggingface_hub
6db7f7f verified
raw
history blame contribute delete
632 Bytes
// main.js
import { initSessions, sessions, currentSessionIndex, renderCurrentSession } from './sessions.js';
import { updateHamburgerPosition } from './navigation.js';
import { initPresets } from './presets.js';
// Import events so they register their listeners.
import './events.js';
// Import utilities to set marked options.
import './utils.js';
// Initialize sessions
initSessions();
updateHamburgerPosition();
initPresets();
// Attach sessions-related variables to the window for global access
window.sessions = sessions;
window.currentSessionIndex = currentSessionIndex;
window.renderCurrentSession = renderCurrentSession;