Skip to content

Commit

Permalink
fix: macos-notification-state not working well (#1794)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphrag committed Jun 1, 2024
1 parent 6f84b89 commit f1790ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build-helpers/entitlements.mas.inherit.plist
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@
<true/>
<key>com.apple.security.automation.apple-events</key>
<true/>
<key>com.apple.developer.usernotifications.communication</key>
<true/>
</dict>
</plist>
2 changes: 2 additions & 0 deletions build-helpers/entitlements.mas.plist
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@
<true/>
<key>com.apple.security.automation.apple-events</key>
<true/>
<key>com.apple.developer.usernotifications.communication</key>
<true/>
</dict>
</plist>
2 changes: 2 additions & 0 deletions src/electron/ipc-api/dnd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export default async () => {
if (!isMac) {
return false;
}
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
// @ts-ignore
const { getDoNotDisturb } = await import('macos-notification-state');

if (!getDoNotDisturb) {
Expand Down

0 comments on commit f1790ac

Please sign in to comment.