From f2781220df2361dde48c918657044eb60cfaaff7 Mon Sep 17 00:00:00 2001
From: jblemee <jblemee@gmail.com>
Date: Tue, 8 Jan 2019 11:14:15 +0100
Subject: [PATCH] clean: remove useless wait for webComponentReady

---
 src/scripts/hd-widgets.js | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

diff --git a/src/scripts/hd-widgets.js b/src/scripts/hd-widgets.js
index 3fc8bc87..8c9ef596 100644
--- a/src/scripts/hd-widgets.js
+++ b/src/scripts/hd-widgets.js
@@ -128,14 +128,11 @@ class HDAppLinkMore extends SIBWidget {
   }
 }
 
-document.addEventListener('WebComponentsReady', function(event) {
-
-  customElements.define('hdapp-userinfo', HDAppUserInfo);
-  customElements.define('hdapp-mail', HDAppMail);
-  customElements.define('hdapp-member', HDAppMember);
-  customElements.define('hdapp-author', HDAppAuthor);
-  customElements.define('hdapp-closing-date', HDAppClosingDate);
-  customElements.define('hdapp-available', HDAppAvailable);
-  customElements.define('hdapp-hyperlink', HDAppHyperlink);
-  customElements.define('hdapp-link-more', HDAppLinkMore);
-});
+customElements.define('hdapp-userinfo', HDAppUserInfo);
+customElements.define('hdapp-mail', HDAppMail);
+customElements.define('hdapp-member', HDAppMember);
+customElements.define('hdapp-author', HDAppAuthor);
+customElements.define('hdapp-closing-date', HDAppClosingDate);
+customElements.define('hdapp-available', HDAppAvailable);
+customElements.define('hdapp-hyperlink', HDAppHyperlink);
+customElements.define('hdapp-link-more', HDAppLinkMore);
\ No newline at end of file
-- 
GitLab