Skip to content

Commit

Permalink
fix: activeTabID mistakenly ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
SunriseFox authored and Jack-Works committed Oct 10, 2019
1 parent 06340d7 commit bc98d2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { isNil } from 'lodash-es'
// ? If failed, we will fallback to open a new tab to do this.
export async function fetchPostContentFacebook(post: PostIdentifier<PersonIdentifier>) {
const activeTabID = await getActiveTab()
if (activeTabID) {
if (activeTabID !== undefined) {
// Path 1: fetch by http req
const url = getPostUrlAtFacebook(post, 'fetch')
const html = await timeout(tasks(activeTabID).fetch(url), 5000)
Expand Down

0 comments on commit bc98d2e

Please sign in to comment.