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
juliushaertl committed Aug 4, 2023
1 parent 274e2c1 commit 878308e
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 @@ -114,13 +114,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 878308e

Please sign in to comment.