diff --git a/frontend/js/sidebar.js b/frontend/js/sidebar.js index 739a411..b4fe8ad 100644 --- a/frontend/js/sidebar.js +++ b/frontend/js/sidebar.js @@ -3,7 +3,7 @@ import { safeCreateIcons, getFileIcon } from './utils.js'; import { api } from './auth.js'; import { populateCustomDropdown, TabManager, closeMobileSidebar, ContextMenuManager } from './ui.js'; import { _populateRecentVaultFilter, switchSidebarTab } from './config.js'; -import { el, icon, getVaultIcon, smallBadge, attachTreeItemActionButton, attachTreeItemLongPress, showWelcome } from './viewer.js'; +import { el, icon, getVaultIcon, smallBadge, attachTreeItemActionButton, attachTreeItemLongPress, showWelcome, appendHighlightedText } from './viewer.js'; import { performAdvancedSearch } from './search.js'; // --------------------------------------------------------------------------- diff --git a/frontend/js/viewer.js b/frontend/js/viewer.js index 0c37405..d40f037 100644 --- a/frontend/js/viewer.js +++ b/frontend/js/viewer.js @@ -790,7 +790,7 @@ function makeBreadcrumbSpan(text, onClick) { return s; } -function appendHighlightedText(container, text, query, caseSensitive) { +export function appendHighlightedText(container, text, query, caseSensitive) { container.textContent = ""; if (!query) { container.appendChild(document.createTextNode(text));