mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 15:25:51 +01:00
refactor: proper websocket message types
This commit is contained in:
@@ -140,7 +140,7 @@ ws.subscribeToMessages(async (message) => {
|
||||
};
|
||||
}
|
||||
|
||||
if (message.taskType !== "export") {
|
||||
if (!("taskType" in message) || message.taskType !== "export") {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -155,4 +155,4 @@ ws.subscribeToMessages(async (message) => {
|
||||
|
||||
toastService.showPersistent(toast);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user