From 521e0c4fab3eb2b05a71ae40612e10842710d68f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Wed, 12 Dec 2018 14:47:00 +0100 Subject: [PATCH] Documentation. Stop multiple declarations of LitElement --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 96f14c5..0f33f05 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ Currently, the Home Assistant frontend is being converted to LitElement based el Instead, a reference to `LitElement` must be extracted from somewhere else: ```js -const LitElement = Object.getPrototypeOf(customElements.get('hui-error-entity-row')); +var LitElement = LitElement || Object.getPrototypeOf(customElements.get('hui-error-entity-row')); class LitCard extends LitElement { ... }