Fix: use Frame type for _getTtsFrame return (TS build)
Made-with: Cursor
This commit is contained in:
parent
533e976039
commit
b02bfd4c8f
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import { Page } from 'playwright';
|
import { Frame, Page } from 'playwright';
|
||||||
import { Logger } from 'winston';
|
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
|
* 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.
|
* 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();
|
const frames = this._page.frames();
|
||||||
for (const frame of frames) {
|
for (const frame of frames) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue