fix some issues with audio recording and playback in safari #121, #122

This commit is contained in:
or-else
2023-04-14 17:47:35 -07:00
parent 6273b3287f
commit 8dd32a341b
27 changed files with 172 additions and 43 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");
});
}