Skip to content
Snippets Groups Projects
Commit 0a12a547 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 d6bda78a
No related branches found
No related tags found
No related merge requests found
......@@ -741,7 +741,7 @@ const gConnectionPane = (function() {
const annotations = await res.json();
const bcp47 = Services.locale.appLocaleAsBCP47;
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) {
emojiAnnotations = annotations[bcp47];
} else if (lang in annotations) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment