Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats authored Feb 17, 2020
1 parent eec0404 commit 4a85ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/metascraper-readability/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const jsdom = require('jsdom')
const { JSDOM, VirtualConsole } = jsdom

const readability = memoizeOne(($, url) => {
const dom = new JSDOM($.html(), { url, virtualConsole: new jsdom.VirtualConsole() })
const dom = new JSDOM($.html(), { url, virtualConsole: new VirtualConsole() })
const reader = new Readability(dom.window.document)
return reader.parse()
})
Expand Down

0 comments on commit 4a85ed7

Please sign in to comment.