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

remove tvos dts hack no longer needed

This commit is contained in:
Luke Pulverenti 2016-12-14 15:58:55 -05:00
parent ef2c5637be
commit fcdcd1d5f4
15 changed files with 112 additions and 47 deletions

View file

@ -1,4 +1,4 @@
define(['browser', 'dom', 'css!./emby-button', 'registerElement'], function (browser, dom) {
define(['browser', 'dom', 'layoutManager', 'css!./emby-button', 'registerElement'], function (browser, dom, layoutManager) {
'use strict';
var EmbyButtonPrototype = Object.create(HTMLButtonElement.prototype);
@ -78,6 +78,10 @@
this.classList.add('emby-button-noflex');
}
if (layoutManager.tv) {
this.classList.add('emby-button-focusscale');
}
if (enableAnimation()) {
dom.addEventListener(this, 'keydown', onKeyDown, {
passive: true