🎨 The browser redirects to a blank page when exiting the application https://github.com/siyuan-note/siyuan/issues/16945

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-03-01 12:24:57 +08:00
parent 8b2151f7d0
commit b7d999744a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -26,7 +26,7 @@ import {
import {initMessage, showMessage} from "./dialog/message";
import {getAllTabs} from "./layout/getAll";
import {getLocalStorage, isChromeBrowser, isInMobileApp} from "./protyle/util/compatibility";
import {getSearch} from "./util/functions";
import {getSearch, isBrowser} from "./util/functions";
import {checkPublishServiceClosed} from "./util/processMessage";
import {hideAllElements} from "./protyle/ui/hideElements";
import {loadPlugins, reloadPlugin} from "./plugin/loader";
@ -188,6 +188,10 @@ export class App {
case "openFileById":
openFileById({app: this, id: data.data.id, action: [Constants.CB_GET_FOCUS]});
break;
case "exit":
if (isBrowser()) {
window.location.href = "about:blank";
}
}
}
}