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

23 lines
572 B
JavaScript
Raw Normal View History

import layoutManager from 'layoutManager';
import 'css!./emby-button';
import 'registerElement';
/* eslint-disable indent */
const EmbyButtonPrototype = Object.create(HTMLButtonElement.prototype);
EmbyButtonPrototype.createdCallback = function () {
this.classList.add('paper-icon-button-light');
if (layoutManager.tv) {
2019-09-06 22:33:15 -07:00
this.classList.add('show-focus');
}
};
document.registerElement('paper-icon-button-light', {
2018-10-23 01:05:09 +03:00
prototype: EmbyButtonPrototype,
extends: 'button'
});
/* eslint-enable indent */