From 27aec4c48bd594fc5dd79665b678a194731d942c Mon Sep 17 00:00:00 2001 From: Jason Henriquez Date: Fri, 12 Apr 2024 11:18:53 -0500 Subject: [PATCH] Remove unnecessary 'async function' in mounted --- src/renderer/components/playlist-info/playlist-info.js | 2 +- .../components/subscriptions-tab-ui/subscriptions-tab-ui.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/playlist-info/playlist-info.js b/src/renderer/components/playlist-info/playlist-info.js index 5ec5f63bd..082462405 100644 --- a/src/renderer/components/playlist-info/playlist-info.js +++ b/src/renderer/components/playlist-info/playlist-info.js @@ -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 () { diff --git a/src/renderer/components/subscriptions-tab-ui/subscriptions-tab-ui.js b/src/renderer/components/subscriptions-tab-ui/subscriptions-tab-ui.js index 958c03539..293fd6f8f 100644 --- a/src/renderer/components/subscriptions-tab-ui/subscriptions-tab-ui.js +++ b/src/renderer/components/subscriptions-tab-ui/subscriptions-tab-ui.js @@ -80,7 +80,7 @@ export default defineComponent({ this.dataLimit = this.initialDataLimit } }, - mounted: async function () { + mounted: function () { document.addEventListener('keydown', this.keyboardShortcutHandler) }, beforeDestroy: function () {