mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 20:00:17 +01:00
This commit is contained in:
parent
7c3536cb18
commit
8c02c2cb93
1 changed files with 5 additions and 0 deletions
|
|
@ -18,6 +18,11 @@ const statusElement = document.querySelector("#status") as HTMLElement;
|
|||
export const onMessage = (app: App, data: IWebSocketData) => {
|
||||
if (data) {
|
||||
switch (data.cmd) {
|
||||
case "sendDeviceNotification":
|
||||
if (window.JSAndroid.sendNotification) {
|
||||
window.JSAndroid.sendNotification(data.data.title, data.data.body);
|
||||
}
|
||||
break;
|
||||
case "backgroundtask":
|
||||
if (!document.querySelector("#keyboardToolbar").classList.contains("fn__none") ||
|
||||
window.siyuan.config.appearance.hideStatusBar) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue