Skip to content

Commit

Permalink
typo fix :'(
Browse files Browse the repository at this point in the history
  • Loading branch information
N0taN3rd committed Feb 24, 2019
1 parent 093b87c commit edf79ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const { RemoteChromeWARCGenerator, RemoteChromeCapturer } = require('node-warc')
client.Network.enable(),
])
const cap = new RemoteChromeCapturer(client.Network)
cap.stopCapturing()
cap.startCapturing()
await client.Page.navigate({ url: 'http://example.com' });
// actual code should wait for a better stopping condition, eg. network idle
await client.Page.loadEventFired()
Expand Down Expand Up @@ -140,7 +140,7 @@ const { CRIExtraWARCGenerator, CRIExtraCapturer } = require('node-warc')
client = await CRIExtra({ host: 'localhost', port: 9222 })
const page = await Page.create(client)
const cap = new CRIExtraCapturer(page, Events.Page.Request)
cap.stopCapturing()
cap.startCapturing()
await page.goto('https://example.com', { waitUntil: 'networkIdle' })
const warcGen = new CRIExtraWARCGenerator()
await warcGen.generateWARC(cap, {
Expand Down Expand Up @@ -172,7 +172,7 @@ const { PuppeteerWARCGenerator, PuppeteerCapturer } = require('node-warc')
const browser = await puppeteer.launch()
const page = await browser.newPage()
const cap = new PuppeteerCapturer(page, Events.Page.Request)
cap.stopCapturing()
cap.startCapturing()
await page.goto('http://example.com', { waitUntil: 'networkidle0' })
const warcGen = new PuppeteerWARCGenerator()
await warcGen.generateWARC(cap, {
Expand Down

0 comments on commit edf79ac

Please sign in to comment.