diff --git a/src/local-time-element.js b/src/local-time-element.js index 6c06ec9..2e81041 100644 --- a/src/local-time-element.js +++ b/src/local-time-element.js @@ -119,5 +119,7 @@ function formatTime(el) { // var time = new LocalTimeElement() // # => // -window.LocalTimeElement = LocalTimeElement -window.customElements.define('local-time', LocalTimeElement) +if (!window.customElements.get('local-time')) { + window.LocalTimeElement = LocalTimeElement + window.customElements.define('local-time', LocalTimeElement) +}