Make import paths ES6-compatible

This commit is contained in:
MrTimscampi 2020-08-14 08:46:34 +02:00 committed by vitorsemeano
parent 1a635e2f81
commit bfb8c7c1f6
245 changed files with 2073 additions and 1995 deletions

View file

@ -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'
});