mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2025-12-24 02:39:18 -05:00
fix(webpush): simplify condition for enabling push notifications
Signed-off-by: 0xsysr3ll <0xsysr3ll@pm.me>
This commit is contained in:
@@ -185,7 +185,7 @@ const UserWebPushSettings = () => {
|
|||||||
(device) => device.userAgent === currentUserAgent
|
(device) => device.userAgent === currentUserAgent
|
||||||
);
|
);
|
||||||
|
|
||||||
if (hasMatchingDevice || dataDevices.length === 1) {
|
if (hasMatchingDevice) {
|
||||||
isEnabled = true;
|
isEnabled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user