Bug 1945938 - Update weather to check geo location to determine temperature units instead of set browser language locale. r=home-newtab-reviewers,thecount
Differential Revision: https://phabricator.services.mozilla.com/D237159
This commit is contained in:
@@ -306,7 +306,7 @@ export const PREFS_CONFIG = new Map([
|
||||
"weather.temperatureUnits",
|
||||
{
|
||||
title: "Switch the temperature between Celsius and Fahrenheit",
|
||||
getValue: args => (args.locale === "en-US" ? "f" : "c"),
|
||||
getValue: ({ geo }) => (geo === "US" ? "f" : "c"),
|
||||
},
|
||||
],
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user