Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e20da1f21c |
@@ -11,7 +11,9 @@ type WindowWithWebkit = Window & { webkitAudioContext?: typeof AudioContext };
|
||||
|
||||
export function voiceSupported(): boolean {
|
||||
const w = window as WindowWithWebkit;
|
||||
return typeof navigator.mediaDevices?.getUserMedia === "function" && Boolean(window.AudioContext || w.webkitAudioContext);
|
||||
return (
|
||||
typeof navigator.mediaDevices?.getUserMedia === "function" && Boolean(window.AudioContext || w.webkitAudioContext)
|
||||
);
|
||||
}
|
||||
|
||||
export class Recorder {
|
||||
|
||||
Reference in New Issue
Block a user