This commit is contained in:
Vanessa 2023-02-24 15:26:43 +08:00
parent cdae86d50b
commit 5b30b60bf7
5 changed files with 9 additions and 9 deletions

View file

@ -581,12 +581,12 @@ export const copyTab = (tab: Tab) => {
};
export const pdfIsLoading = (element: HTMLElement) => {
const isLoading = element.querySelector('.layout-tab-container > [data-loading="true"]') ? true : false
const isLoading = element.querySelector('.layout-tab-container > [data-loading="true"]') ? true : false;
if (isLoading) {
showMessage(window.siyuan.languages.pdfIsLoading);
}
return isLoading;
}
};
export const getInstanceById = (id: string, layout = window.siyuan.layout.centerLayout) => {
const _getInstanceById = (item: Layout | Wnd, id: string) => {