gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-wallet-webex] 01/02: fix style initialization


From: gnunet
Subject: [GNUnet-SVN] [taler-wallet-webex] 01/02: fix style initialization
Date: Thu, 27 Apr 2017 03:09:34 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-webex.

commit 68e44e0e80635b00333ef2fcbb0ad937581344ba
Author: Florian Dold <address@hidden>
AuthorDate: Thu Apr 27 02:31:32 2017 +0200

    fix style initialization
---
 src/content_scripts/notify.ts | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/content_scripts/notify.ts b/src/content_scripts/notify.ts
index 726b5ae..166b1c6 100644
--- a/src/content_scripts/notify.ts
+++ b/src/content_scripts/notify.ts
@@ -257,8 +257,15 @@ function init() {
       return;
     }
     if (document.documentElement.getAttribute("data-taler-nojs")) {
-      initStyle();
-      setStyles(true);
+      const onload = () => {
+        initStyle();
+        setStyles(true);
+      };
+      if (document.readyState == "complete") {
+        onload();
+      } else {
+        document.addEventListener("DOMContentLoaded", onload);
+      }
     }
     registerHandlers();
     // Hack to know when the extension is unloaded

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]