Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
torbutton
Commits
6a96c483
Commit
6a96c483
authored
Sep 25, 2020
by
Alex Catarineu
Browse files
Bug 31767: Avoid using intl.locale.requested pref directly
parent
4320a0de
Changes
1
Hide whitespace changes
Inline
Side-by-side
chrome/content/aboutTor/aboutTor-content.js
View file @
6a96c483
...
@@ -57,7 +57,8 @@ var AboutTorListener = {
...
@@ -57,7 +57,8 @@ var AboutTorListener = {
onPageLoad
:
function
()
{
onPageLoad
:
function
()
{
// Arrange to update localized text and links.
// Arrange to update localized text and links.
bindPrefAndInit
(
"
intl.locale.requested
"
,
aNewVal
=>
{
bindPrefAndInit
(
"
intl.locale.requested
"
,
()
=>
{
const
aNewVal
=
Services
.
locale
.
requestedLocale
;
if
(
aNewVal
!==
null
)
{
if
(
aNewVal
!==
null
)
{
this
.
onLocaleChange
(
aNewVal
);
this
.
onLocaleChange
(
aNewVal
);
}
}
...
...
Matthew Finkel
@sysrqb
mentioned in merge request
!30 (merged)
·
Jan 18, 2021
mentioned in merge request
!30 (merged)
mentioned in merge request !30
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment