Skip to content
This repository was archived by the owner on Nov 24, 2018. It is now read-only.

Commit 1c105ad

Browse files
committed
rename html() to getHtml()
1 parent a7459f4 commit 1c105ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/chrome/local-runtime.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
click,
1010
evaluate,
1111
screenshot,
12-
html,
12+
getHtml,
1313
type,
1414
getValue,
1515
scrollTo,
@@ -219,7 +219,7 @@ export default class LocalRuntime {
219219
}
220220

221221
async returnHtml(): Promise<string> {
222-
return await html(this.client)
222+
return await getHtml(this.client)
223223
}
224224

225225
private log(msg: string): void {

src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ export async function screenshot(client: Client): Promise<string> {
273273
return screenshot.data
274274
}
275275

276-
export async function html(client: Client): Promise<string> {
276+
export async function getHtml(client: Client): Promise<string> {
277277
const {DOM} = client
278278

279279
const {root: {nodeId}} = await DOM.getDocument()

0 commit comments

Comments
 (0)