diff options
author | Alphrag <34252790+Alphrag@users.noreply.github.com> | 2024-06-01 17:22:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-01 17:22:45 +0100 |
commit | f1790ace34af20305babf783978d3d8bba41140b (patch) | |
tree | c61e69249745dd74bc8c5f6145fb6de68d079990 | |
parent | Upgrade 'macos-notification-state' to latest version (includes fix for node-gyp) (diff) | |
download | ferdium-app-f1790ace34af20305babf783978d3d8bba41140b.tar.gz ferdium-app-f1790ace34af20305babf783978d3d8bba41140b.tar.zst ferdium-app-f1790ace34af20305babf783978d3d8bba41140b.zip |
fix: macos-notification-state not working well (#1794)
-rw-r--r-- | build-helpers/entitlements.mas.inherit.plist | 2 | ||||
-rw-r--r-- | build-helpers/entitlements.mas.plist | 2 | ||||
-rw-r--r-- | src/electron/ipc-api/dnd.ts | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/build-helpers/entitlements.mas.inherit.plist b/build-helpers/entitlements.mas.inherit.plist index 78c1f8d83..6e7ea7cb9 100644 --- a/build-helpers/entitlements.mas.inherit.plist +++ b/build-helpers/entitlements.mas.inherit.plist | |||
@@ -18,5 +18,7 @@ | |||
18 | <true/> | 18 | <true/> |
19 | <key>com.apple.security.automation.apple-events</key> | 19 | <key>com.apple.security.automation.apple-events</key> |
20 | <true/> | 20 | <true/> |
21 | <key>com.apple.developer.usernotifications.communication</key> | ||
22 | <true/> | ||
21 | </dict> | 23 | </dict> |
22 | </plist> | 24 | </plist> |
diff --git a/build-helpers/entitlements.mas.plist b/build-helpers/entitlements.mas.plist index 78c1f8d83..6e7ea7cb9 100644 --- a/build-helpers/entitlements.mas.plist +++ b/build-helpers/entitlements.mas.plist | |||
@@ -18,5 +18,7 @@ | |||
18 | <true/> | 18 | <true/> |
19 | <key>com.apple.security.automation.apple-events</key> | 19 | <key>com.apple.security.automation.apple-events</key> |
20 | <true/> | 20 | <true/> |
21 | <key>com.apple.developer.usernotifications.communication</key> | ||
22 | <true/> | ||
21 | </dict> | 23 | </dict> |
22 | </plist> | 24 | </plist> |
diff --git a/src/electron/ipc-api/dnd.ts b/src/electron/ipc-api/dnd.ts index 280521a9f..577cd0448 100644 --- a/src/electron/ipc-api/dnd.ts +++ b/src/electron/ipc-api/dnd.ts | |||
@@ -8,6 +8,8 @@ export default async () => { | |||
8 | if (!isMac) { | 8 | if (!isMac) { |
9 | return false; | 9 | return false; |
10 | } | 10 | } |
11 | // eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error | ||
12 | // @ts-ignore | ||
11 | const { getDoNotDisturb } = await import('macos-notification-state'); | 13 | const { getDoNotDisturb } = await import('macos-notification-state'); |
12 | 14 | ||
13 | if (!getDoNotDisturb) { | 15 | if (!getDoNotDisturb) { |