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

Commit

Permalink
rename html() to getHtml()
Browse files Browse the repository at this point in the history
  • Loading branch information
seangransee committed Aug 1, 2017
1 parent dfd446f commit a9fdcf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/chrome/local-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
click,
evaluate,
screenshot,
html,
getHtml,
type,
getValue,
scrollTo,
Expand Down Expand Up @@ -219,7 +219,7 @@ export default class LocalRuntime {
}

async returnHtml(): Promise<string> {
return await html(this.client)
return await getHtml(this.client)
}

private log(msg: string): void {
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export async function screenshot(client: Client): Promise<string> {
return screenshot.data
}

export async function html(client: Client): Promise<string> {
export async function getHtml(client: Client): Promise<string> {
const {DOM} = client

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

0 comments on commit a9fdcf3

Please sign in to comment.