Fix importing node-notifier

This commit is contained in:
Samuel Elliott 2022-09-19 19:13:23 +01:00
parent 99423f263b
commit 4cdc2adc30
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
2 changed files with 4 additions and 2 deletions

View File

@ -104,7 +104,8 @@ export async function handler(argv: ArgumentsCamelCase<Arguments>) {
const i = new ZncNotifications(storage, token, nso, data);
i.notifications = new TerminalNotificationManager(await import('node-notifier'));
const notifier = (await import('node-notifier')).default;
i.notifications = new TerminalNotificationManager(notifier);
i.user_notifications = argv.userNotifications;
i.friend_notifications = argv.friendNotifications;
i.update_interval = argv.updateInterval;

View File

@ -191,7 +191,8 @@ export async function handler(argv: ArgumentsCamelCase<Arguments>) {
const i = new ZncDiscordPresence(storage, token, nso, data);
i.notifications = new TerminalNotificationManager(await import('node-notifier'));
const notifier = (await import('node-notifier')).default;
i.notifications = new TerminalNotificationManager(notifier);
i.user_notifications = argv.userNotifications;
i.friend_notifications = argv.friendNotifications;
i.update_interval = argv.updateInterval;