Skip to content

Commit 420d551

Browse files
committed
fix: Keep viewer resize listener
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 7a66cda commit 420d551

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/components/ViewerComponent.vue

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,6 @@ export default {
115115
},
116116
},
117117
118-
beforeMount() {
119-
// FIXME Dirty fix to avoid recreating the component on stable16
120-
if (typeof this.$parent.$parent !== 'undefined' && this.$parent.$parent.onResize) {
121-
window.removeEventListener('resize', this.$parent.$parent.onResize)
122-
}
123-
},
124-
125118
mounted() {
126119
this.loadFileContent()
127120
},

0 commit comments

Comments
 (0)