Bug 664285 - Fallback to default locale if we can't find a matching one. r=mfinkle

This commit is contained in:
Wes Johnston 2011-06-14 14:43:36 -07:00
parent 857b726b39
commit 71b62855ac

View File

@ -346,7 +346,7 @@ function start() {
}
}
if (matchingLocale != chrome.getSelectedLocale("browser"))
if (matchingLocale && matchingLocale != chrome.getSelectedLocale("browser"))
LocaleUI.language = matchingLocale;
else {
LocaleUI._language = chrome.getSelectedLocale("browser");