[tor-commits] [snowflake/master] Set the browser action icon to off when webrtc is disabled

arlo at torproject.org arlo at torproject.org
Sat Jul 13 10:52:25 UTC 2019


commit 6c6707ae9b729a676ae1420d2a62c287fd3f39ab
Author: Arlo Breault <arlolra at gmail.com>
Date:   Sat Jul 13 12:48:21 2019 +0200

    Set the browser action icon to off when webrtc is disabled
    
    This is now necessary since the webextension changed to default to on.
    
    Follow up to 095f4a0
    
    From trac 31067
---
 proxy/init-webext.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/proxy/init-webext.js b/proxy/init-webext.js
index 2f4f156..c641621 100644
--- a/proxy/init-webext.js
+++ b/proxy/init-webext.js
@@ -36,6 +36,7 @@ var debug, snowflake, config, broker, ui, log, dbg, init, update, silenceNotific
         missingFeature: true
       });
     });
+    chrome.browserAction.setIcon({ path: { 32: "icons/status-off.png" } });
     return;
   }
 



More information about the tor-commits mailing list