From 420d551596a56723276ae4814f7da1af68321cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 4 Aug 2023 09:46:06 +0200 Subject: [PATCH] fix: Keep viewer resize listener MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/ViewerComponent.vue | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/components/ViewerComponent.vue b/src/components/ViewerComponent.vue index 6ea05d7b9e1..304674100a3 100644 --- a/src/components/ViewerComponent.vue +++ b/src/components/ViewerComponent.vue @@ -115,13 +115,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() },