fix: export closeMobileSidebar, showLoading; add imports
This commit is contained in:
parent
ac223e0541
commit
8662d4ce17
@ -1,6 +1,7 @@
|
||||
/* ObsiGate — Search module */
|
||||
import { state } from './state.js';
|
||||
import { safeCreateIcons } from './utils.js';
|
||||
import { showLoading } from './viewer.js';
|
||||
// ---------------------------------------------------------------------------
|
||||
// Search History Service (localStorage, LIFO, max 50, dedup)
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
@ -411,7 +411,7 @@ export function initMobile() {
|
||||
});
|
||||
}
|
||||
|
||||
function closeMobileSidebar() {
|
||||
export function closeMobileSidebar() {
|
||||
const sidebar = document.getElementById("sidebar");
|
||||
const overlay = document.getElementById("sidebar-overlay");
|
||||
if (sidebar) sidebar.classList.remove("mobile-open");
|
||||
|
||||
@ -1034,7 +1034,7 @@ async function loadSavedSearches() {
|
||||
} catch (err) { /* silently ignore */ }
|
||||
}
|
||||
|
||||
function showLoading() {
|
||||
export function showLoading() {
|
||||
const area = document.getElementById("content-area");
|
||||
area.innerHTML = `
|
||||
<div class="loading-indicator">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user