[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-wallet-webex] branch master updated: only add styles
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-wallet-webex] branch master updated: only add styles if the page requested it |
Date: |
Wed, 26 Apr 2017 03:14:35 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-webex.
The following commit(s) were added to refs/heads/master by this push:
new a787cf2 only add styles if the page requested it
a787cf2 is described below
commit a787cf2f6ca939c8166070bd1addd43f66b0bce6
Author: Florian Dold <address@hidden>
AuthorDate: Wed Apr 26 03:14:31 2017 +0200
only add styles if the page requested it
---
src/content_scripts/notify.ts | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/content_scripts/notify.ts b/src/content_scripts/notify.ts
index a0f76cf..726b5ae 100644
--- a/src/content_scripts/notify.ts
+++ b/src/content_scripts/notify.ts
@@ -256,15 +256,19 @@ function init() {
window.setTimeout(init, 200);
return;
}
- initStyle();
- setStyles(true);
+ if (document.documentElement.getAttribute("data-taler-nojs")) {
+ initStyle();
+ setStyles(true);
+ }
registerHandlers();
// Hack to know when the extension is unloaded
let port = chrome.runtime.connect();
port.onDisconnect.addListener(() => {
logVerbose && console.log("chrome runtime disconnected, removing
handlers");
- setStyles(false);
+ if (document.documentElement.getAttribute("data-taler-nojs")) {
+ setStyles(false);
+ }
for (let handler of handlers) {
document.removeEventListener(handler.type, handler.listener);
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-wallet-webex] branch master updated: only add styles if the page requested it,
gnunet <=