mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 14:07:55 +00:00
Add html to LitElement.prototype (#2120)
This commit is contained in:
parent
3752530f96
commit
1cc6e09953
@ -4,6 +4,7 @@ import "@polymer/iron-flex-layout/iron-flex-layout-classes";
|
|||||||
import { html } from "@polymer/polymer/lib/utils/html-tag";
|
import { html } from "@polymer/polymer/lib/utils/html-tag";
|
||||||
import { PolymerElement } from "@polymer/polymer/polymer-element";
|
import { PolymerElement } from "@polymer/polymer/polymer-element";
|
||||||
import { afterNextRender } from "@polymer/polymer/lib/utils/render-status";
|
import { afterNextRender } from "@polymer/polymer/lib/utils/render-status";
|
||||||
|
import { html as litHtml, LitElement } from "@polymer/lit-element";
|
||||||
|
|
||||||
import "../home-assistant-main";
|
import "../home-assistant-main";
|
||||||
import "../ha-init-page";
|
import "../ha-init-page";
|
||||||
@ -21,6 +22,8 @@ import ConnectionMixin from "./connection-mixin";
|
|||||||
import NotificationMixin from "./notification-mixin";
|
import NotificationMixin from "./notification-mixin";
|
||||||
import DisconnectToastMixin from "./disconnect-toast-mixin";
|
import DisconnectToastMixin from "./disconnect-toast-mixin";
|
||||||
|
|
||||||
|
LitElement.prototype.html = litHtml;
|
||||||
|
|
||||||
const ext = (baseClass, mixins) =>
|
const ext = (baseClass, mixins) =>
|
||||||
mixins.reduceRight((base, mixin) => mixin(base), baseClass);
|
mixins.reduceRight((base, mixin) => mixin(base), baseClass);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user