diff --git a/app/src/asset/index.ts b/app/src/asset/index.ts
index 80cfcce17..e352442f2 100644
--- a/app/src/asset/index.ts
+++ b/app/src/asset/index.ts
@@ -467,14 +467,14 @@ export class Asset extends Model {
const observer = new MutationObserver(() => {
this.pdfObject = webViewerLoad(this.path.startsWith("file") ? this.path : document.getElementById("baseURL").getAttribute("href") + "/" + this.path,
this.element, this.pdfPage, this.pdfId);
- this.element.setAttribute("data-loading", "true")
+ this.element.setAttribute("data-loading", "true");
observer.disconnect();
});
observer.observe(this.element, {attributeFilter: ["class"]});
} else {
this.pdfObject = webViewerLoad(this.path.startsWith("file") ? this.path : document.getElementById("baseURL").getAttribute("href") + "/" + this.path,
this.element, this.pdfPage, this.pdfId);
- this.element.setAttribute("data-loading", "true")
+ this.element.setAttribute("data-loading", "true");
}
}, Constants.TIMEOUT_BLOCKLOAD);
/// #endif
diff --git a/app/src/card/viewCards.ts b/app/src/card/viewCards.ts
index 527506f05..658854e66 100644
--- a/app/src/card/viewCards.ts
+++ b/app/src/card/viewCards.ts
@@ -132,7 +132,7 @@ export const viewCards = (deckID: string, title: string, cb:(response:IWebSocket
if (!nextElment) {
getArticle(edit, "");
- listElement.innerHTML = `
${window.siyuan.languages.emptyContent}
`
+ listElement.innerHTML = `${window.siyuan.languages.emptyContent}
`;
} else {
getArticle(edit, nextElment.getAttribute("data-id"));
listElement.querySelector(".b3-list-item--focus")?.classList.remove("b3-list-item--focus");
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index 91a31955b..ca9fa11bb 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -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) => {
diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.ts
index ca4084d56..31751ecb0 100644
--- a/app/src/protyle/header/Title.ts
+++ b/app/src/protyle/header/Title.ts
@@ -409,8 +409,8 @@ ${window.siyuan.languages.createdAt} ${dayjs(response.data.ial.id.substr(0, 14))
return false;
}
this.element.setAttribute("data-node-id", protyle.block.rootID);
- if (response.data.ial['custom-riff-decks']) {
- this.element.setAttribute("custom-riff-decks", response.data.ial['custom-riff-decks']);
+ if (response.data.ial["custom-riff-decks"]) {
+ this.element.setAttribute("custom-riff-decks", response.data.ial["custom-riff-decks"]);
}
protyle.background.render(response.data.ial, protyle.block.rootID);
protyle.wysiwyg.renderCustom(response.data.ial);
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index db03e5a16..208fec0c3 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -448,8 +448,8 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, focus: b
if (refElement) {
nodeAttrHTML += refElement.outerHTML;
}
- if (data.new['custom-riff-decks']) {
- protyle.title.element.setAttribute("custom-riff-decks", data.new['custom-riff-decks']);
+ if (data.new["custom-riff-decks"]) {
+ protyle.title.element.setAttribute("custom-riff-decks", data.new["custom-riff-decks"]);
} else {
protyle.title.element.removeAttribute("custom-riff-decks");
}