From be65edb1a6eed0dd9dbd67c85e37c2469702f3e1 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Fri, 29 May 2026 08:57:58 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20search.js=20=E2=80=94=20ReferenceError?= =?UTF-8?q?=20el=20+=20=5FgetEffective=20non=20importes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/js/config.js | 2 +- frontend/js/search.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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) // ---------------------------------------------------------------------------