This commit is contained in:
Vanessa 2022-12-25 10:31:01 +08:00
parent 27c9ac2b25
commit ec00af7334
3 changed files with 5 additions and 5 deletions

View file

@ -8,8 +8,8 @@ let yDiff: number;
export const handleTouchEnd = () => {
if (window.siyuan.mobileEditor) {
document.querySelectorAll(".protyle-breadcrumb__bar--hide").forEach(item => {
item.classList.remove("protyle-breadcrumb__bar--hide")
})
item.classList.remove("protyle-breadcrumb__bar--hide");
});
window.siyuan.hideBreadcrumb = false;
}

View file

@ -49,4 +49,4 @@ export const isFileAnnotation = (text: string) => {
// REF https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/eval
export const looseJsonParse = (text: string) => {
return Function(`"use strict";return (${text})`)();
}
};

View file

@ -86,8 +86,8 @@ export const globalShortcut = () => {
window.addEventListener("mousemove", (event) => {
if (window.siyuan.hideBreadcrumb) {
document.querySelectorAll(".protyle-breadcrumb__bar--hide").forEach(item => {
item.classList.remove("protyle-breadcrumb__bar--hide")
})
item.classList.remove("protyle-breadcrumb__bar--hide");
});
window.siyuan.hideBreadcrumb = false;
}