mirror of
https://github.com/desktop/desktop
synced 2024-08-24 18:57:33 +00:00
Bump desktop-notifications to v0.1.5
Also use new function to check if notifications are supported
This commit is contained in:
parent
32e75984d8
commit
44f57dff28
|
@ -26,7 +26,7 @@
|
|||
"codemirror-mode-elixir": "^1.1.2",
|
||||
"compare-versions": "^3.6.0",
|
||||
"deep-equal": "^1.0.1",
|
||||
"desktop-notifications": "^0.1.4",
|
||||
"desktop-notifications": "^0.1.5",
|
||||
"desktop-trampoline": "desktop/desktop-trampoline#v0.9.8",
|
||||
"detect-arm64-translation": "https://github.com/desktop/node-detect-arm64-translation#v1.0.4",
|
||||
"dexie": "^2.0.0",
|
||||
|
|
|
@ -2,6 +2,7 @@ import { focusWindow } from '../../../ui/main-process-proxy'
|
|||
import {
|
||||
DesktopNotification,
|
||||
initializeNotifications,
|
||||
supportsNotifications,
|
||||
} from 'desktop-notifications'
|
||||
import { findToastActivatorClsid } from '../../find-toast-activator-clsid'
|
||||
|
||||
|
@ -37,7 +38,7 @@ export function showNotification(
|
|||
body: string,
|
||||
onClick: () => void
|
||||
) {
|
||||
if (__WIN32__) {
|
||||
if (supportsNotifications()) {
|
||||
initializeWindowsNotifications()
|
||||
|
||||
const notification = new DesktopNotification(title, body)
|
||||
|
|
|
@ -333,11 +333,12 @@ delegates@^1.0.0:
|
|||
resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
|
||||
integrity sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=
|
||||
|
||||
desktop-notifications@^0.1.4:
|
||||
version "0.1.4"
|
||||
resolved "https://registry.yarnpkg.com/desktop-notifications/-/desktop-notifications-0.1.4.tgz#698c5822fb88d7a2289f36b4f64eaac8b5bdefed"
|
||||
integrity sha512-3ADhNvqL9ISbN17x/hWcYUcGHvWJxPnoxxsQbmrU26wpk2eakvDplCm0fvNIpHx/Ar5O7n1VmMOVmLr8W6B8sQ==
|
||||
desktop-notifications@^0.1.5:
|
||||
version "0.1.5"
|
||||
resolved "https://registry.yarnpkg.com/desktop-notifications/-/desktop-notifications-0.1.5.tgz#896d42753b356db9027ef26ddc0dc1714c87e778"
|
||||
integrity sha512-yuOZsux22TCjeztMXS5tua889DZTIXpA7q9jKXds2M9BJl/a657/Z7Pv1sC3X0QtEuow1udEiMWWVFUkudGZVg==
|
||||
dependencies:
|
||||
lru-cache "^6.0.0"
|
||||
node-addon-api "^4.3.0"
|
||||
prebuild-install "^7.0.1"
|
||||
uuid "^8.3.2"
|
||||
|
|
Loading…
Reference in a new issue