Skip to content

Commit

Permalink
remove message handler on close
Browse files Browse the repository at this point in the history
  • Loading branch information
kevodwyer committed Sep 18, 2024
1 parent 206bb7c commit 74bfefd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/viewers/Markup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ module.exports = {
this.showSpinner = false;
},
close: function () {
window.removeEventListener('message', this.messageHandler);
this.$emit("hide-markup-viewer");
},
hasValidFileExtension: function(path, validExtensions, showErrorMessage) {
Expand Down

0 comments on commit 74bfefd

Please sign in to comment.