Skip to content

Commit

Permalink
fix(background): content script cannot catch rejections from bg
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed May 11, 2018
1 parent 949d03e commit 29667a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/background/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ function fetchDictResult (
}
return result
})
.catch(err => {
console.warn(err)
return null
})
}

function preloadSelection (): Promise<void> {
Expand Down

0 comments on commit 29667a5

Please sign in to comment.