[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



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@xxxxxxxxxxxxxx>
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.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits