diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2023-07-30 11:23:57 -0600 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2023-07-30 23:57:51 +0000 |
commit | b35dd897a94d98faeee84645ca885114494e45c0 (patch) | |
tree | ddb0610e24a628f2a5960950480363b8e94bd82a /src/electron | |
parent | refactor: more lint improvements (diff) | |
download | ferdium-app-b35dd897a94d98faeee84645ca885114494e45c0.tar.gz ferdium-app-b35dd897a94d98faeee84645ca885114494e45c0.tar.zst ferdium-app-b35dd897a94d98faeee84645ca885114494e45c0.zip |
- convert require statement to dynamic import in index.ts
- import color from darkThemeGrayDarkest instead of hardcoding it in index.ts
- convert require statement to dynamic import in dnd.ts
Diffstat (limited to 'src/electron')
-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"); |