Fix: use Frame type for _getTtsFrame return (TS build)

Made-with: Cursor
This commit is contained in:
ValueOn AG 2026-02-27 12:30:43 +01:00
parent 533e976039
commit b02bfd4c8f

View file

@ -1,4 +1,4 @@
import { Page } from 'playwright';
import { Frame, Page } from 'playwright';
import { Logger } from 'winston';
/**
@ -97,7 +97,7 @@ export class AudioProcedure {
* Teams meeting often runs in an iframe; page.evaluate runs in main frame, so we'd
* play into the wrong streamDest. Returns the frame to use, or null for main page.
*/
private async _getTtsFrame(): Promise<{ evaluate: typeof this._page.evaluate } | null> {
private async _getTtsFrame(): Promise<Frame | null> {
const frames = this._page.frames();
for (const frame of frames) {
try {