Removed config dependency from searchbar

This commit is contained in:
Alicia Sykes
2022-08-14 20:32:23 +01:00
parent c9cd395313
commit 8f893c36d7
2 changed files with 4 additions and 3 deletions

View File

@@ -95,7 +95,8 @@ export default {
},
/* If configured, launch specific app when hotkey pressed */
handleHotKey(key) {
const usersHotKeys = this.getCustomKeyShortcuts();
const sections = this.$store.getters.sections || [];
const usersHotKeys = this.getCustomKeyShortcuts(sections);
usersHotKeys.forEach((hotkey) => {
if (hotkey.hotkey === parseInt(key, 10)) {
if (hotkey.url) window.open(hotkey.url, '_blank');