diff --git a/dist/weather-card-editor.js b/dist/weather-card-editor.js index 73cab7a9..94301849 100644 --- a/dist/weather-card-editor.js +++ b/dist/weather-card-editor.js @@ -1,3 +1,12 @@ +const _customElementsDefine = window.customElements.define; +window.customElements.define = (name, cl, conf) => { + if (!customElements.get(name)) { + _customElementsDefine.call(window.customElements, name, cl, conf); + } else { + console.warn(`${name} has been defined twice`); + } +}; + if (!customElements.get("paper-input")) { console.log("imported", "paper-input"); import("https://unpkg.com/@polymer/paper-input/paper-input.js?module");