File size: 532 Bytes
8b7b267
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 * Sidebar Loader
 * Loads and initializes the sidebar component
 * This is a wrapper that uses the LayoutManager
 */

import { LayoutManager } from '../core/layout-manager.js';

// Auto-initialize when this script loads
(async function initSidebar() {
  try {
    // Only inject sidebar if not already injected
    if (!LayoutManager.layoutsInjected) {
      await LayoutManager.injectSidebar();
    }
  } catch (error) {
    console.error('[Sidebar] Failed to load sidebar:', error);
  }
})();

export default LayoutManager;