Files
jellyfin-web/src/elements/emby-button/paper-icon-button-light.js
T
2020-07-24 12:25:07 +02:00

19 lines
469 B
JavaScript

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