Make import paths ES6-compatible
This commit is contained in:
parent
1a635e2f81
commit
bfb8c7c1f6
245 changed files with 2073 additions and 1995 deletions
|
@ -1,18 +1,18 @@
|
|||
import layoutManager from 'layoutManager';
|
||||
import 'css!./emby-button';
|
||||
import 'webcomponents';
|
||||
import layoutManager from '../../components/layoutManager';
|
||||
import './emby-button.css';
|
||||
import 'webcomponents.js';
|
||||
|
||||
const EmbyButtonPrototype = Object.create(HTMLButtonElement.prototype);
|
||||
|
||||
EmbyButtonPrototype.createdCallback = function () {
|
||||
this.classList.add('paper-icon-button-light');
|
||||
this.classList.add('../../elements/emby-button/paper-icon-button-light');
|
||||
|
||||
if (layoutManager.tv) {
|
||||
this.classList.add('show-focus');
|
||||
}
|
||||
};
|
||||
|
||||
document.registerElement('paper-icon-button-light', {
|
||||
document.registerElement('../../elements/emby-button/paper-icon-button-light', {
|
||||
prototype: EmbyButtonPrototype,
|
||||
extends: 'button'
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue