[tor-commits] [tor-browser] 01/04: fixup! Bug 40926: Implemented the New Identity feature

gitolite role git at cupani.torproject.org
Wed Sep 7 17:00:36 UTC 2022


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

richard pushed a commit to branch tor-browser-102.2.0esr-12.0-3
in repository tor-browser.

commit c262b01adda9163a5bd220b6b190946540dcbd1d
Author: Henry Wilkes <henry at torproject.org>
AuthorDate: Tue Sep 6 16:57:50 2022 +0100

    fixup! Bug 40926: Implemented the New Identity feature
    
    Removed reference to #appMenu-new-identity2 which no longer exists.
    
    Use the sentence case string for #appMenu-new-identity.
---
 browser/components/newidentity/content/newidentity.js | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/browser/components/newidentity/content/newidentity.js b/browser/components/newidentity/content/newidentity.js
index 49981503b1182..0c1b2b4c5be7b 100644
--- a/browser/components/newidentity/content/newidentity.js
+++ b/browser/components/newidentity/content/newidentity.js
@@ -480,18 +480,11 @@ XPCOMUtils.defineLazyGetter(this, "NewIdentityButton", () => {
       const viewCache = document.getElementById("appMenu-viewCache").content;
       const appButton = viewCache.querySelector("#appMenu-new-identity");
       if (appButton) {
-        appButton.setAttribute("label", NewIdentityStrings.new_identity);
-        appButton.addEventListener("command", () => {
-          this.onCommand();
-        });
-      }
-      const appButton2 = viewCache.querySelector("#appMenu-new-identity2");
-      if (appButton2) {
-        appButton2.setAttribute(
+        appButton.setAttribute(
           "label",
           NewIdentityStrings.new_identity_sentence_case
         );
-        appButton2.addEventListener("command", () => {
+        appButton.addEventListener("command", () => {
           this.onCommand();
         });
       }

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


More information about the tor-commits mailing list