merge devel

This commit is contained in:
or-else
2023-04-14 19:34:27 -07:00
28 changed files with 185 additions and 114 deletions
+2 -1
View File
@@ -431,7 +431,7 @@ class TinodeWeb extends React.Component {
}).then(token => {
if (token) {
return token;
} else {
} else if (typeof Notification != 'undefined') {
// Try to request permissions.
return Notification.requestPermission().then(permission => {
if (permission === 'granted') {
@@ -450,6 +450,7 @@ class TinodeWeb extends React.Component {
}
});
}
throw new Error("Notifications are not supported");
});
}