Skip to content
Snippets Groups Projects
Commit 1dace7f6 authored by Richard Pospesel's avatar Richard Pospesel
Browse files

fixup! Bug 31286: Implementation of bridge, proxy, and firewall settings in...

fixup! Bug 31286: Implementation of bridge, proxy, and firewall settings in about:preferences#connection

fixed substring calculation to get short name of locale for bridge emojii names
parent cf3ca81b
No related branches found
No related tags found
1 merge request!546fixup! Bug 31286: Implementation of bridge, proxy, and firewall settings in...
...@@ -741,7 +741,7 @@ const gConnectionPane = (function() { ...@@ -741,7 +741,7 @@ const gConnectionPane = (function() {
const annotations = await res.json(); const annotations = await res.json();
const bcp47 = Services.locale.appLocaleAsBCP47; const bcp47 = Services.locale.appLocaleAsBCP47;
const dash = bcp47.indexOf("-"); const dash = bcp47.indexOf("-");
const lang = dash !== -1 ? bcp47.substring(dash) : bcp47; const lang = dash !== -1 ? bcp47.substring(0, dash) : bcp47;
if (bcp47 in annotations) { if (bcp47 in annotations) {
emojiAnnotations = annotations[bcp47]; emojiAnnotations = annotations[bcp47];
} else if (lang in annotations) { } else if (lang in annotations) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment