[tor-commits] [snowflake-webext/master] Move getMessage inside missingFeature

arlo at torproject.org arlo at torproject.org
Thu Apr 30 19:59:30 UTC 2020


commit 11f3d871f34ccb0ab732ac943ac7af6416830a3b
Author: Arlo Breault <arlolra at gmail.com>
Date:   Wed Apr 15 13:51:35 2020 -0400

    Move getMessage inside missingFeature
---
 init-badge.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/init-badge.js b/init-badge.js
index cb066e8..e676323 100644
--- a/init-badge.js
+++ b/init-badge.js
@@ -32,7 +32,7 @@ class BadgeUI extends UI {
     this.popup.setActive(false);
     this.popup.setStatusText(messages.getMessage('popupStatusOff'));
     this.setIcon('off');
-    this.popup.setStatusDesc(missing, true);
+    this.popup.setStatusDesc(messages.getMessage(missing), true);
     this.popup.hideButton();
   }
 
@@ -139,7 +139,7 @@ var debug, snowflake, config, broker, ui, log, dbg, init, update, silenceNotific
     }
 
     if (!Util.hasWebRTC()) {
-      ui.missingFeature(messages.getMessage('popupWebRTCOff'));
+      ui.missingFeature('popupWebRTCOff');
       snowflake.disable();
       return;
     }
@@ -154,7 +154,7 @@ var debug, snowflake, config, broker, ui, log, dbg, init, update, silenceNotific
         snowflake.beginWebRTC();
       },
       () => {
-        ui.missingFeature(messages.getMessage('popupBridgeUnreachable'));
+        ui.missingFeature('popupBridgeUnreachable');
         snowflake.disable();
         log('Could not connect to bridge.');
       }
@@ -165,7 +165,7 @@ var debug, snowflake, config, broker, ui, log, dbg, init, update, silenceNotific
     ui = new BadgeUI();
 
     if (!Util.hasCookies()) {
-      ui.missingFeature(messages.getMessage('badgeCookiesOff'));
+      ui.missingFeature('badgeCookiesOff');
       return;
     }
 





More information about the tor-commits mailing list