Skip to content

Commit

Permalink
Ignore render error when "Transport destroyed"
Browse files Browse the repository at this point in the history
  • Loading branch information
hrynko committed Jun 20, 2022
1 parent 50b80f2 commit 1bffd14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vue-pdf-embed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ export default {
this.$emit('rendered')
} catch (e) {
if (e.message === 'Transport destroyed') {
return
}
this.document = null
this.pageCount = null
this.pageNums = []
Expand Down

0 comments on commit 1bffd14

Please sign in to comment.