diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2023-01-29 12:15:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-29 12:15:37 +0000 |
commit | 2a9908fe89a4683b13591a5323bdcefb134cf656 (patch) | |
tree | 63e8ec6fc4d71c9c3bf574d0aaf9042ef99f99b8 /src/webview/notifications.ts | |
parent | feat(i18n): New Crowdin translations (Chinese Simplified) [skip ci] (#895) (diff) | |
download | ferdium-app-2a9908fe89a4683b13591a5323bdcefb134cf656.tar.gz ferdium-app-2a9908fe89a4683b13591a5323bdcefb134cf656.tar.zst ferdium-app-2a9908fe89a4683b13591a5323bdcefb134cf656.zip |
Bump uuid from 8.3.2 to 9.0.0 (#884)
Use new version of 'uuid' module and also refer to v4 of the uuid spec for generating unique notificationId
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'src/webview/notifications.ts')
-rw-r--r-- | src/webview/notifications.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview/notifications.ts b/src/webview/notifications.ts index 8b2831754..7f6ce01fd 100644 --- a/src/webview/notifications.ts +++ b/src/webview/notifications.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { ipcRenderer } from 'electron'; | 1 | import { ipcRenderer } from 'electron'; |
2 | 2 | ||
3 | import { v1 as uuidV1 } from 'uuid'; | 3 | import { v4 as uuidV4 } from 'uuid'; |
4 | 4 | ||
5 | const debug = require('../preload-safe-debug')('Ferdium:Notifications'); | 5 | const debug = require('../preload-safe-debug')('Ferdium:Notifications'); |
6 | 6 | ||
@@ -12,7 +12,7 @@ export class NotificationsHandler { | |||
12 | return new Promise(resolve => { | 12 | return new Promise(resolve => { |
13 | debug('New notification', title, options); | 13 | debug('New notification', title, options); |
14 | 14 | ||
15 | const notificationId = uuidV1(); | 15 | const notificationId = uuidV4(); |
16 | 16 | ||
17 | ipcRenderer.sendToHost( | 17 | ipcRenderer.sendToHost( |
18 | 'notification', | 18 | 'notification', |