Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Clean code

Danielaa9b884bfafb
diff --git a/app/src/menus/util.ts b/app/src/menus/util.ts
index 0edc2f4ae9..bd212cf8ef 100644
--- a/app/src/menus/util.ts
+++ b/app/src/menus/util.ts
@@ -11,7 +11,6 @@ import {MenuItem} from "./Menu";
import {App} from "../index";
import {exportByMobile, isInAndroid, updateHotkeyTip} from "../protyle/util/compatibility";
import {checkFold} from "../util/noRelyPCFunction";
-import {showMessage} from "../dialog/message";
export const exportAsset = (src: string) => {
return {
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index c228d85c29..37c3da3011 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -621,7 +621,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
}, 450);
}
});
- const attrElement = item.querySelector(".protyle-attr")
+ const attrElement = item.querySelector(".protyle-attr");
if (data.new["custom-avs"] && !data.new["av-names"]) {
nodeAttrHTML += attrElement.querySelector(".protyle-attr--av")?.outerHTML || "";
}