1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fetch action only once in inputManager

This commit is contained in:
MrTimscampi 2020-04-10 22:58:18 +02:00
parent 89979a00a3
commit 9d859d4fd3

View file

@ -227,10 +227,11 @@ import appHost from 'apphost';
}
})[command];
if (keyActions(commandName) === undefined) {
console.debug(`inputManager: tried to process command with no action assigned: ${commandName}`);
const action = keyActions(commandName);
if (action !== undefined) {
action.call();
} else {
keyActions(commandName).call();
console.debug(`inputManager: tried to process command with no action assigned: ${commandName}`);
}
}