Skip to content

Commit

Permalink
fix: interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 1, 2020
1 parent 940f162 commit 4c824a2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/metascraper-iframe/src/from-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,7 @@ const { fetchProvider } = oEmbed

const fromProvider = async ({ url, meta, htmlDom, ...opts }) => {
const provider = findProvider(url)

const { value } = await pReflect(
fetchProvider(provider, {
opts,
url,
format: 'json'
})
)

const { value } = await pReflect(fetchProvider(provider, url, opts))
return get(value, 'html', null)
}

Expand Down

0 comments on commit 4c824a2

Please sign in to comment.