Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/17569#issuecomment-4317010234

Daniel59bfab321ba2
diff --git a/app/electron/main.js b/app/electron/main.js
index 9303ebb180..4894c11071 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -485,8 +485,7 @@ const initMainWindow = () => {
});
currentWindow.webContents.on('render-process-gone', (event, details) => {
- console.log('Reason: ', details.reason);
- console.log('Exit code', details.exitCode);
+ writeLog("Render process gone [reason=" + details.reason + ", exitCode=" + details.exitCode + "]");
});
if (windowState.isDevToolsOpened) {
diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts
index 369057baae..f54148c222 100644
--- a/app/src/protyle/util/paste.ts
+++ b/app/src/protyle/util/paste.ts
@@ -399,7 +399,6 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
fragment.appendChild(doc.body.firstChild);
}
- container.innerHTML = '';
container.appendChild(fragment);
document.body.removeChild(iframe);
@@ -408,7 +407,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
// 编辑器内部粘贴
const tempElement = document.createElement("div");
if (1024 * 512 < siyuanHTML.length) {
- await streamInsert(tempElement, siyuanHTML)
+ await streamInsert(tempElement, siyuanHTML);
} else {
tempElement.innerHTML = siyuanHTML;
}