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 <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Aug 7, 2023
1 parent 7a66cda commit d91463d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/components/ViewerComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,6 @@ export default {
source() {
this.loadFileContent()
},
active() {
this.loadFileContent()
},
},

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() {
Expand Down

0 comments on commit d91463d

Please sign in to comment.