From bbed06e2ba255199703343625129712ef7707697 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 16 Aug 2021 23:13:06 +0530 Subject: Revert "chore: update outdated node_modules (#1807)" This reverts commit 26a9dba22236bc22a7612107630282cfe02d20e0. --- src/webview/notifications.js | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src/webview/notifications.js') diff --git a/src/webview/notifications.js b/src/webview/notifications.js index 73cdb89d4..205a3220c 100644 --- a/src/webview/notifications.js +++ b/src/webview/notifications.js @@ -1,25 +1,22 @@ import { ipcRenderer } from 'electron'; -import { v1 as uuidV1 } from 'uuid'; +import uuidV1 from 'uuid/v1'; const debug = require('debug')('Ferdi:Notifications'); export class NotificationsHandler { - onNotify = data => data; + onNotify = (data) => data; displayNotification(title, options) { - return new Promise(resolve => { + return new Promise((resolve) => { debug('New notification', title, options); const notificationId = uuidV1(); - ipcRenderer.sendToHost( - 'notification', - this.onNotify({ - title, - options, - notificationId, - }), - ); + ipcRenderer.sendToHost('notification', this.onNotify({ + title, + options, + notificationId, + })); ipcRenderer.once(`notification-onclick:${notificationId}`, () => { resolve(); -- cgit v1.2.3-70-g09d2