mirror of
https://github.com/vector-im/element-web.git
synced 2025-11-02 09:11:47 +01:00
Don't always claim we have notif support
Only if the browser has the Notification API
This commit is contained in:
parent
757604fd60
commit
6aba9f8eda
@ -68,7 +68,7 @@ export default class WebPlatform extends BasePlatform {
|
|||||||
* notifications, otherwise false.
|
* notifications, otherwise false.
|
||||||
*/
|
*/
|
||||||
supportsNotifications() : boolean {
|
supportsNotifications() : boolean {
|
||||||
return true;
|
return Boolean(global.Notification);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user