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 7, 2023
1 parent 67f0101 commit b35a369
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 b35a369

Please sign in to comment.