Skip to content

Commit

Permalink
fix: Keep viewer resize listener
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Aug 7, 2023
1 parent 7a66cda commit 420d551
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/components/ViewerComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,6 @@ export default {
},
},

beforeMount() {
// FIXME Dirty fix to avoid recreating the component on stable16
if (typeof this.$parent.$parent !== 'undefined' && this.$parent.$parent.onResize) {
window.removeEventListener('resize', this.$parent.$parent.onResize)
}
},

mounted() {
this.loadFileContent()
},
Expand Down

0 comments on commit 420d551

Please sign in to comment.