INNER CODE UNIT · JavaScript
init
asklokesh/loki-mode · dashboard-ui/index.js:118
export function init(config = {}) {
// Initialize theme system
if (config.theme) {
UnifiedThemeManager.setTheme(config.theme);
} else if (config.autoDetectContext !== false) {
// Auto-detect context and apply appropriate theme
UnifiedThemeManager.init();
} else {
// Fall back to legacy init
LokiTheme.init();
}
// Set global API URL if provided
if (config.apiUrl) {
getApiClient({ baseUrl: config.apiUrl });
}
return {