Commit 8d2302f1 authored by Dave Barker's avatar Dave Barker 🐈

Refs #62 - Ensure the button index is numeric

parent f1054c84
Pipeline #79213226 passed with stages
in 7 minutes and 38 seconds
......@@ -325,7 +325,7 @@ exports.initNotifications = () =>
{
let onClick = (notificationId, buttonIndex) =>
{
if (typeof buttonIndex != "undefined")
if (typeof buttonIndex == "number")
notificationButtonClick(notificationId, buttonIndex);
else if (!browserNotificationButtonsSupported)
openNotificationLinks(notificationId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment