Skip to content

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

:bug: https://github.com/siyuan-note/siyuan/issues/5149

Vanessabb2fafccb17f
diff --git a/app/stage/auth.html b/app/stage/auth.html
index 2ca8355f7b..baa31b5856 100644
--- a/app/stage/auth.html
+++ b/app/stage/auth.html
@@ -384,9 +384,19 @@
<div class="b3-snackbar__content"></div>
</div>
<script>
- if (location.hostname !== "127.0.0.1") {
- document.querySelector(".b3-button--white").remove();
+ if (location.hostname !== '127.0.0.1') {
+ document.querySelector('.b3-button--white').remove()
}
+
+ try {
+ const {ipcRenderer} = require('electron')
+ ipcRenderer.on('siyuan-save-close', (event, close) => {
+ exitSiYuan()
+ })
+ } catch (e) {
+ console.log(e)
+ }
+
const exitApp = () => {
try {
const {ipcRenderer} = require('electron')