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

Make the console quieter by default

This commit is contained in:
MrTimscampi 2020-02-16 03:44:43 +01:00
parent e5343cada8
commit e12e6731b2
56 changed files with 286 additions and 273 deletions

View file

@ -1,7 +1,7 @@
define(["inputManager", "layoutManager"], function (inputManager, layoutManager) {
"use strict";
console.log("keyboardnavigation");
console.debug("keyboardnavigation");
/**
* Key name mapping.
@ -45,7 +45,7 @@ define(["inputManager", "layoutManager"], function (inputManager, layoutManager)
try {
hasFieldKey = "key" in new KeyboardEvent("keydown");
} catch (e) {
console.log("error checking 'key' field");
console.error("error checking 'key' field");
}
if (!hasFieldKey) {
@ -142,7 +142,7 @@ define(["inputManager", "layoutManager"], function (inputManager, layoutManager)
}
if (capture) {
console.log("Disabling default event handling");
console.debug("Disabling default event handling");
e.preventDefault();
}
});