mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-31 01:50:22 +09:00
fix: build error
This commit is contained in:
parent
a18cb2c525
commit
488b23cdad
@ -31,11 +31,15 @@ export class OpenAITranscriptionApi extends SpeechApi {
|
||||
}
|
||||
|
||||
async start(): Promise<void> {
|
||||
// @ts-ignore prettier-ignore
|
||||
// @ts-ignore
|
||||
navigator.getUserMedia =
|
||||
// @ts-ignore
|
||||
navigator.getUserMedia ||
|
||||
// @ts-ignore
|
||||
navigator.webkitGetUserMedia ||
|
||||
// @ts-ignore
|
||||
navigator.mozGetUserMedia ||
|
||||
// @ts-ignore
|
||||
navigator.msGetUserMedia;
|
||||
if (navigator.mediaDevices) {
|
||||
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
|
||||
|
Loading…
Reference in New Issue
Block a user