[tor-commits] [pluggable-transports/snowflake-webext] 02/02: Ensure active status is set for badge and extension

gitolite role git at cupani.torproject.org
Thu Sep 22 13:42:29 UTC 2022


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

cohosh pushed a commit to branch main
in repository pluggable-transports/snowflake-webext.

commit 3345eda9ee1ee70542a15e73168c86780054a1ec
Author: Cecylia Bocovich <cohosh at torproject.org>
AuthorDate: Mon Sep 19 14:51:21 2022 -0400

    Ensure active status is set for badge and extension
---
 static/popup.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/static/popup.js b/static/popup.js
index e11584f..3edaeeb 100644
--- a/static/popup.js
+++ b/static/popup.js
@@ -64,8 +64,10 @@ class Popup {
     this.setChecked(true);
     if (clients > 0) {
       this.setStatusText(this.getMsgFunc('popupStatusOn', String(clients)));
+      this.active = true;
     } else {
       this.setStatusText(this.getMsgFunc('popupStatusReady'));
+      this.active = false;
     }
     this.setStatusDesc((total > 0) ? this.getMsgFunc('popupDescOn', String(total)) : '');
     this.setEnabled(true);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tor-commits mailing list