From 01429d7ff0b27c03ad927e323fc0400bf1ef1586 Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Sun, 31 Jul 2022 12:13:35 +0100 Subject: [PATCH] Swapped to array index --- src/main/plugins/playbackNotifications.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/plugins/playbackNotifications.ts b/src/main/plugins/playbackNotifications.ts index 92df3724..44c1aaf9 100644 --- a/src/main/plugins/playbackNotifications.ts +++ b/src/main/plugins/playbackNotifications.ts @@ -36,10 +36,6 @@ export default class playbackNotifications { { 'type': 'button', 'text': 'Play/Pause' - }, - { - 'type': 'button', - 'text': 'Next' } ], toastXml: ` @@ -64,9 +60,9 @@ export default class playbackNotifications { this._notification = undefined; }) this._notification.on('action', (event: any, action: any) => { - if (action === 'Play/Pause') { + if (action === 0) { this._utils.playback.playPause() - } else if (action === 'Next') { + } else if (action === 1) { this._utils.playback.next() } })