Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move recorder to server side #5128

Merged
merged 1 commit into from Jan 24, 2021

Conversation

pavelfeldman
Copy link
Member

No description provided.

@@ -255,8 +254,12 @@ export class BrowserContext extends ChannelOwner<channels.BrowserContextChannel,
}
}

async _extendInjectedScript<Arg>(source: string, arg?: Arg) {
await this._channel.extendInjectedScript({ source, arg: serializeArgument(arg) });
async _exposeConsoleApi<Arg>() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: no need for <Arg> here and below

await this._extendInjectedScript(recorderSource.source);
}

private async _extendInjectedScript(name: string, arg?: any) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: name -> source?

@pavelfeldman pavelfeldman merged commit be9bef5 into microsoft:master Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants