perf: skip language dropdown search (-35s join delay)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
ad8c858ce4
commit
6da5e3d3b9
1 changed files with 4 additions and 5 deletions
|
|
@ -55,10 +55,9 @@ export class CaptionsProcedure {
|
||||||
|
|
||||||
this._logger.info('Captions/transcription enabled');
|
this._logger.info('Captions/transcription enabled');
|
||||||
|
|
||||||
// Only try separate language setting if dialog wasn't already handled
|
// Language setting skipped: spoken language is managed by the meeting organizer.
|
||||||
if (!dialogHandled) {
|
// The previous _setSpokenLanguage() call added ~30s delay searching for a dropdown
|
||||||
await this._setSpokenLanguage();
|
// that was never found, while captions already worked in the correct language.
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -368,7 +367,7 @@ export class CaptionsProcedure {
|
||||||
private async _handleLanguageDialog(): Promise<boolean> {
|
private async _handleLanguageDialog(): Promise<boolean> {
|
||||||
try {
|
try {
|
||||||
const dialogSelector = '[data-tid="spoken-language-selection-dialog"]';
|
const dialogSelector = '[data-tid="spoken-language-selection-dialog"]';
|
||||||
await this._page.waitForSelector(dialogSelector, { timeout: 8000 });
|
await this._page.waitForSelector(dialogSelector, { timeout: 3000 });
|
||||||
this._logger.info('Spoken language selection dialog appeared');
|
this._logger.info('Spoken language selection dialog appeared');
|
||||||
|
|
||||||
// Read current language from dropdown button
|
// Read current language from dropdown button
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue