Commit 6a96c483 authored by Alex Catarineu's avatar Alex Catarineu
Browse files

Bug 31767: Avoid using intl.locale.requested pref directly

parent 4320a0de
......@@ -57,7 +57,8 @@ var AboutTorListener = {
onPageLoad: function() {
// Arrange to update localized text and links.
bindPrefAndInit("intl.locale.requested", aNewVal => {
bindPrefAndInit("intl.locale.requested", () => {
const aNewVal = Services.locale.requestedLocale;
if (aNewVal !== null) {
this.onLocaleChange(aNewVal);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment