Vanessa 2022-11-28 17:59:36 +08:00
parent 436cab9f68
commit 6f7792fd90

View file

@ -36,7 +36,7 @@ export const openGlobalSearch = (text: string, replace: boolean) => {
}
const tab = new Tab({
icon: "iconSearch",
title: "",
title: window.siyuan.languages.search,
callback(tab) {
const localData = JSON.parse(localStorage.getItem(Constants.LOCAL_SEARCHEDATA) || "{}");
if (!localData.types) {
@ -217,7 +217,7 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: ()
}
const tab = new Tab({
icon: "iconSearch",
title: "",
title: window.siyuan.languages.search,
callback(tab) {
const asset = new Search({
tab,