This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new cbce1eb  [OPENMEETINGS-2616] chrome android should work
cbce1eb is described below

commit cbce1eb2c0ef177da8d25de13f6cd34429b944b8
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Sun May 2 13:12:02 2021 +0700

    [OPENMEETINGS-2616] chrome android should work
---
 openmeetings-web/src/main/front/main/src/omutils.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/openmeetings-web/src/main/front/main/src/omutils.js 
b/openmeetings-web/src/main/front/main/src/omutils.js
index 99bec44..78cb21b 100644
--- a/openmeetings-web/src/main/front/main/src/omutils.js
+++ b/openmeetings-web/src/main/front/main/src/omutils.js
@@ -75,7 +75,11 @@ function _notify(msg, tag, elseCallback) {
                        const opts = {
                                        tag: tag
                                };
-                       new Notification(msg, opts);
+                       try {
+                               new Notification(msg, opts);
+                       } catch (e) {
+                               console.error("Failed to create Notification" + 
e)
+                       }
                }
                if (Notification.permission === 'granted') {
                        _newMessage();

Reply via email to