Skip to content

Commit

Permalink
Remove unnecessary 'async function' in mounted
Browse files Browse the repository at this point in the history
  • Loading branch information
kommunarr committed Apr 12, 2024
1 parent 807fa75 commit 27aec4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renderer/components/playlist-info/playlist-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export default defineComponent({

this.updateQueryDebounce = debounce(this.updateQuery, 500)
},
mounted: async function () {
mounted: function () {
document.addEventListener('keydown', this.keyboardShortcutHandler)
},
beforeDestroy: function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default defineComponent({
this.dataLimit = this.initialDataLimit
}
},
mounted: async function () {
mounted: function () {
document.addEventListener('keydown', this.keyboardShortcutHandler)
},
beforeDestroy: function () {
Expand Down

0 comments on commit 27aec4c

Please sign in to comment.