1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-30 23:44:55 +02:00

Added back support for alarms

This commit is contained in:
Laurent Cozic
2020-10-14 12:56:27 +01:00
parent 040261abfa
commit cc889182b6
40 changed files with 112 additions and 38 deletions

View File

@ -33,11 +33,11 @@ export default class AlarmServiceDriverNode {
return false;
}
notificationIsSet(id:string) {
notificationIsSet(id:number) {
return id in this.notifications_;
}
async clearNotification(id:string) {
async clearNotification(id:number) {
if (!this.notificationIsSet(id)) return;
shim.clearTimeout(this.notifications_[id].timeoutId);
delete this.notifications_[id];