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