fix: Support audio in safari browser (#5943)
This commit is contained in:
parent
613fb0b064
commit
c9cae01cb4
3 changed files with 40 additions and 8 deletions
|
@ -232,11 +232,18 @@ export default {
|
|||
return this.showFileUpload || this.isNote;
|
||||
},
|
||||
showAudioRecorderButton() {
|
||||
// Disable audio recorder for safari browser as recording is not supported
|
||||
const isSafari = /^((?!chrome|android|crios|fxios).)*safari/i.test(
|
||||
navigator.userAgent
|
||||
);
|
||||
|
||||
return (
|
||||
this.isFeatureEnabledonAccount(
|
||||
this.accountId,
|
||||
FEATURE_FLAGS.VOICE_RECORDER
|
||||
) && this.showAudioRecorder
|
||||
) &&
|
||||
this.showAudioRecorder &&
|
||||
!isSafari
|
||||
);
|
||||
},
|
||||
showAudioPlayStopButton() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue