|
@@ -635,12 +635,12 @@ export const openSearch = async (hotkey: string, key?: string, notebookId?: stri
|
|
};
|
|
};
|
|
|
|
|
|
const getKey = (element: HTMLElement) => {
|
|
const getKey = (element: HTMLElement) => {
|
|
- const keys: string[] = []
|
|
|
|
|
|
+ const keys: string[] = [];
|
|
element.querySelectorAll("mark").forEach(item => {
|
|
element.querySelectorAll("mark").forEach(item => {
|
|
keys.push(item.textContent);
|
|
keys.push(item.textContent);
|
|
- })
|
|
|
|
|
|
+ });
|
|
return [...new Set(keys)].join(" ");
|
|
return [...new Set(keys)].join(" ");
|
|
-}
|
|
|
|
|
|
+};
|
|
|
|
|
|
const getArticle = (options: {
|
|
const getArticle = (options: {
|
|
id: string,
|
|
id: string,
|