Keep nav hidden on TV

Prevents focus of menu entries
This commit is contained in:
Niklas Fäth 2019-07-11 15:20:53 +02:00 committed by GitHub
parent 6d52868166
commit 9cc0491e3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -771,7 +771,9 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
return new Promise(function (resolve, reject) { return new Promise(function (resolve, reject) {
require(["navdrawer"], function (navdrawer) { require(["navdrawer"], function (navdrawer) {
navDrawerInstance = new navdrawer(getNavDrawerOptions()); navDrawerInstance = new navdrawer(getNavDrawerOptions());
navDrawerElement.classList.remove("hide"); if (!layoutManager.tv) {
navDrawerElement.classList.remove("hide");
}
resolve(navDrawerInstance); resolve(navDrawerInstance);
}); });
}); });