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

Add error handling to command processor in inputManager

This commit is contained in:
MrTimscampi 2020-04-07 19:49:22 +02:00
parent 77d8226dd3
commit 33855a655f

View file

@ -100,7 +100,7 @@ import appHost from 'apphost';
focusManager.moveLeft(sourceElement); focusManager.moveLeft(sourceElement);
}, },
'right': () => { 'right': () => {
focusManager.moveRight(sourceElement) focusManager.moveRight(sourceElement);
}, },
'home': () => { 'home': () => {
appRouter.goHome(); appRouter.goHome();
@ -227,7 +227,11 @@ import appHost from 'apphost';
} }
})[command]; })[command];
keyActions(commandName).call(); try {
keyActions(commandName).call();
} catch (error) {
console.debug(`inputManager: tried to process command with no action assigned: ${commandName}`);
}
} }
dom.addEventListener(document, 'click', notify, { dom.addEventListener(document, 'click', notify, {