Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xqdoo00o committed Jun 11, 2024
1 parent d1e6f5c commit f4ee030
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3865,7 +3865,7 @@
);
return upper ? uuid.toUpperCase() : uuid;
};
inputAreaEle.focus();
if (!isMobile) inputAreaEle.focus();
const textInputEvent = () => {
if (noLoading()) sendBtnEle.classList.toggle("activeSendBtn", inputAreaEle.value.trim().length);
inputAreaEle.style.height = "47px";
Expand Down Expand Up @@ -4666,11 +4666,11 @@
constructor() {
this.mimeType = MediaRecorder.isTypeSupported("audio/mp4") ? "audio/mp4" : "audio/webm";
this.suffix = this.mimeType === "audio/mp4" ? ".mp4" : ".webm";
this.bytesPerSecond = 128000;
this.bitsPerSecond = 88888;
this.chunks = [];
}
initRecorder() {
this.recorder = new MediaRecorder(this.stream, { mimeType: this.mimeType, audioBitsPerSecond: this.bytesPerSecond });
this.recorder = new MediaRecorder(this.stream, { mimeType: this.mimeType, audioBitsPerSecond: this.bitsPerSecond });
this.chunks.length = 0;
this.recorder.ondataavailable = e => { this.chunks.push(e.data) };
this.recorder.start(1e3);
Expand Down

0 comments on commit f4ee030

Please sign in to comment.