1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-21 23:17:42 +02:00

Applied prettier to code base

This commit is contained in:
Laurent Cozic
2018-03-09 17:49:35 +00:00
parent e868102c98
commit c4f19465a6
203 changed files with 13395 additions and 7927 deletions

View File

@ -1,7 +1,6 @@
const notifier = require('node-notifier');
const notifier = require("node-notifier");
class AlarmServiceDriverNode {
constructor(options) {
// Note: appName is required to get the notification to work. It must be the same as the appId defined in package.json
// https://github.com/mikaelbr/node-notifier/issues/144#issuecomment-319324058
@ -22,7 +21,7 @@ class AlarmServiceDriverNode {
clearTimeout(this.notifications_[id].timeoutId);
delete this.notifications_[id];
}
async scheduleNotification(notification) {
const now = Date.now();
const interval = notification.date.getTime() - now;
@ -33,7 +32,7 @@ class AlarmServiceDriverNode {
appName: this.appName_,
title: notification.title,
};
if ('body' in notification) o.message = notification.body;
if ("body" in notification) o.message = notification.body;
notifier.notify(o);
this.clearNotification(notification.id);
}, interval);
@ -41,7 +40,6 @@ class AlarmServiceDriverNode {
this.notifications_[notification.id] = Object.assign({}, notification);
this.notifications_[notification.id].timeoutId = timeoutId;
}
}
module.exports = AlarmServiceDriverNode;
module.exports = AlarmServiceDriverNode;