diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.ts index 1fdc7ea8f..4a0c477d6 100644 --- a/app/src/card/openCard.ts +++ b/app/src/card/openCard.ts @@ -199,7 +199,7 @@ export const openCardByData = (cardsData: { cards: ICard[], unreviewedCount: num index, blocks }); - }) + }); event.stopPropagation(); event.preventDefault(); return; @@ -358,8 +358,8 @@ const nextCard = (options: { const allDone = (countElement: Element, editor: Protyle, actionElements: NodeListOf) => { countElement.classList.add("fn__none"); editor.protyle.element.classList.add("fn__none"); - const emptyElement = editor.protyle.element.nextElementSibling - emptyElement.innerHTML = `
🔮
${window.siyuan.languages.noDueCard}` + const emptyElement = editor.protyle.element.nextElementSibling; + emptyElement.innerHTML = `
🔮
${window.siyuan.languages.noDueCard}`; emptyElement.classList.remove("fn__none"); actionElements[0].classList.add("fn__none"); actionElements[1].classList.add("fn__none"); @@ -376,4 +376,4 @@ const newRound = (countElement: Element, editor: Protyle, actionElements: NodeLi emptyElement.classList.remove("fn__none"); actionElements[0].classList.add("fn__none"); actionElements[1].classList.add("fn__none"); -} +}; diff --git a/app/src/mobile/editor.ts b/app/src/mobile/editor.ts index 374103236..95c87f242 100644 --- a/app/src/mobile/editor.ts +++ b/app/src/mobile/editor.ts @@ -16,7 +16,7 @@ import {saveScroll} from "../protyle/scroll/saveScroll"; export const getCurrentEditor = () => { return window.siyuan.mobile.popEditor || window.siyuan.mobile.editor; -} +}; export const openMobileFileById = (id: string, action = [Constants.CB_GET_HL]) => { window.siyuan.storage[Constants.LOCAL_DOCINFO] = {id, action};