Commit 93e095c9 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 f54deb3a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {