jellyfish-web/src/elements/emby-button/paper-icon-button-light.js

19 lines
471 B
JavaScript
Raw Normal View History

import layoutManager from 'layoutManager';
import 'css!./emby-button';
import 'registerElement';
2020-07-17 17:02:49 +01:00
const EmbyButtonPrototype = Object.create(HTMLButtonElement.prototype);
2020-07-17 17:02:49 +01:00
EmbyButtonPrototype.createdCallback = function () {
this.classList.add('paper-icon-button-light');
2020-07-17 17:02:49 +01:00
if (layoutManager.tv) {
this.classList.add('show-focus');
}
};
2020-07-17 17:02:49 +01:00
document.registerElement('paper-icon-button-light', {
prototype: EmbyButtonPrototype,
extends: 'button'
});