mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 20:00:17 +01:00
🎨 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:
parent
8b2151f7d0
commit
b7d999744a
1 changed files with 5 additions and 1 deletions
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue