[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser] 01/04: fixup! Bug 40926: Implemented the New Identity feature
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@xxxxxxxxxxxxxx>
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.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits