Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Keep viewer resize listener
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Aug 9, 2023
commit 6d62c07dc58cd2831c0090d9ee67b861621df04f
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