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

Commit a7459f4

Browse files
committed
fix docs
1 parent 4a0981f commit a7459f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Chromeless provides TypeScript typings.
2020
- [`mousedown()`](#api-mousedown) - Not implemented yet
2121
- [`mouseup()`](#api-mouseup) - Not implemented yet
2222
- [`scrollTo(x: number, y: number)`](#api-scrollto)
23-
- [`setDocumentContent(html: string)`](#api-setdocumentcontent)
23+
- [`setHtml(html: string)`](#api-sethtml)
2424
- [`viewport(width: number, height: number)`](#api-viewport)
2525
- [`evaluate<U extends any>(fn: (...args: any[]) => void, ...args: any[])`](#api-evaluate)
2626
- [`inputValue(selector: string)`](#api-inputvalue)
@@ -256,9 +256,9 @@ await chromeless.scrollTo(500, 0)
256256

257257
---------------------------------------
258258

259-
<a name="api-setdocumentcontent" />
259+
<a name="api-sethtml" />
260260

261-
### setDocumentContent(html: string): Chromeless<T>
261+
### setHtml(html: string): Chromeless<T>
262262

263263
Sets given markup as the document's HTML.
264264

@@ -268,7 +268,7 @@ __Arguments__
268268
__Example__
269269

270270
```js
271-
await chromeless.setDocumentContent('<h1>Hello world!</h1>')
271+
await chromeless.setHtml('<h1>Hello world!</h1>')
272272
```
273273

274274
---------------------------------------

0 commit comments

Comments
 (0)