mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-08 01:38:50 +01:00
🎨 Improve exit on Android
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
4df9a3b928
commit
d1e6b203e6
1 changed files with 6 additions and 1 deletions
|
|
@ -423,7 +423,12 @@
|
|||
const {ipcRenderer} = require('electron')
|
||||
ipcRenderer.send('siyuan-quit', window.location.port)
|
||||
} catch (e) {
|
||||
if ((window.webkit && window.webkit.messageHandlers) || window.JSAndroid || window.JSHarmony) {
|
||||
if (window.JSAndroid) {
|
||||
window.JSAndroid.exit();
|
||||
return;
|
||||
}
|
||||
|
||||
if ((window.webkit && window.webkit.messageHandlers) || window.JSHarmony) {
|
||||
window.location.href = 'siyuan://api/system/exit'
|
||||
} else {
|
||||
window.location.reload()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue