2020-07-24 10:23:14 +02:00
|
|
|
<<<<<<< HEAD
|
2020-07-15 11:41:59 +01:00
|
|
|
import layoutManager from 'layoutManager';
|
|
|
|
import 'css!./emby-button';
|
|
|
|
import 'registerElement';
|
2020-07-24 10:23:14 +02:00
|
|
|
=======
|
2020-07-05 12:06:53 +02:00
|
|
|
define(['layoutManager', 'css!./emby-button', 'webcomponents'], function (layoutManager) {
|
2019-01-10 15:39:37 +03:00
|
|
|
'use strict';
|
2020-07-24 10:23:14 +02:00
|
|
|
>>>>>>> upstream/master
|
2019-01-10 15:39:37 +03:00
|
|
|
|
2020-07-17 17:02:49 +01:00
|
|
|
const EmbyButtonPrototype = Object.create(HTMLButtonElement.prototype);
|
2020-07-15 11:41:59 +01:00
|
|
|
|
2020-07-17 17:02:49 +01:00
|
|
|
EmbyButtonPrototype.createdCallback = function () {
|
|
|
|
this.classList.add('paper-icon-button-light');
|
2019-01-10 15:39:37 +03:00
|
|
|
|
2020-07-17 17:02:49 +01:00
|
|
|
if (layoutManager.tv) {
|
|
|
|
this.classList.add('show-focus');
|
|
|
|
}
|
|
|
|
};
|
2019-01-10 15:39:37 +03:00
|
|
|
|
2020-07-17 17:02:49 +01:00
|
|
|
document.registerElement('paper-icon-button-light', {
|
|
|
|
prototype: EmbyButtonPrototype,
|
|
|
|
extends: 'button'
|
|
|
|
});
|