core&ui: problem: fix quick search operation

This commit is contained in:
undefined committed 2023-02-15 15:11:16 +08:00
1 parent cafe9246c2
commit 7bce252391
2 files changed
+2 -2

No files matched your search

@@ -29,7 +29,7 @@ export default new AutoloadPage('omnibar', () => {
$(document.body).append($entry);
const $input = $('.omnibar input') as JQuery<HTMLInputElement>;
const prefix = window.location.href.startsWith('/d/') ? `/d/${UiContext.domainId}` : '';
const prefix = window.location.pathname.startsWith('/d/') ? `/d/${UiContext.domainId}` : '';
let setSearching;
let pdocs = [];
let psdict = {};