diff options
Diffstat (limited to 'src/electron/ipc-api')
-rw-r--r-- | src/electron/ipc-api/dnd.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/electron/ipc-api/dnd.ts b/src/electron/ipc-api/dnd.ts index 9bef0fe3c..6e6e0920f 100644 --- a/src/electron/ipc-api/dnd.ts +++ b/src/electron/ipc-api/dnd.ts | |||
@@ -9,8 +9,7 @@ export default async () => { | |||
9 | return false; | 9 | return false; |
10 | } | 10 | } |
11 | 11 | ||
12 | // eslint-disable-next-line global-require | 12 | const { getDoNotDisturb } = await import('macos-notification-state'); |
13 | const { getDoNotDisturb } = require('macos-notification-state'); | ||
14 | 13 | ||
15 | if (!getDoNotDisturb) { | 14 | if (!getDoNotDisturb) { |
16 | debug("Could not load 'macos-notification-state' module"); | 15 | debug("Could not load 'macos-notification-state' module"); |