mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 01:57:00 +00:00
Bug 1108382 - Part 10: Do not use non-standard flag argument of String.prototype.replace in mobile/android/. r=rnewman
This commit is contained in:
parent
e921b985a7
commit
4c8ea1ac1e
@ -7709,7 +7709,7 @@ var Distribution = {
|
||||
for (let key in localizeablePrefs) {
|
||||
try {
|
||||
let value = localizeablePrefs[key];
|
||||
value = value.replace("%LOCALE%", locale, "g");
|
||||
value = value.replace(/%LOCALE%/g, locale);
|
||||
localizedString.data = "data:text/plain," + key + "=" + value;
|
||||
defaults.setComplexValue(key, Ci.nsIPrefLocalizedString, localizedString);
|
||||
} catch (e) { /* ignore bad prefs and move on */ }
|
||||
|
Loading…
x
Reference in New Issue
Block a user