diff --git a/frontend/js/config.js b/frontend/js/config.js index 59075f2..23a1919 100644 --- a/frontend/js/config.js +++ b/frontend/js/config.js @@ -367,7 +367,7 @@ function applyFrontendConfig() { } } -function _getEffective(key, fallback) { +export function _getEffective(key, fallback) { const cfg = _getFrontendConfig(); return cfg[key] !== undefined ? cfg[key] : fallback; } diff --git a/frontend/js/search.js b/frontend/js/search.js index 43f675e..9287630 100644 --- a/frontend/js/search.js +++ b/frontend/js/search.js @@ -1,7 +1,8 @@ /* ObsiGate — Search module */ import { state } from './state.js'; import { safeCreateIcons } from './utils.js'; -import { showLoading } from './viewer.js'; +import { showLoading, el } from './viewer.js'; +import { _getEffective } from './config.js'; // --------------------------------------------------------------------------- // Search History Service (localStorage, LIFO, max 50, dedup) // ---------------------------------------------------------------------------