Addresses minification break in KMW's toolbar UI module

This commit is contained in:
Joshua A. Horton 2019-02-26 08:24:19 +07:00
parent 4534cb9d9a
commit 3dec4d3559

View file

@ -337,7 +337,7 @@ if(!window['keyman']['ui']['name']) {
if(Keyboards[j]['RegionCode'] != i) continue; // Not this region
// Get JUST the language code for this section. BCP-47 codes can include more!
var bcpSubtags: string[] = keymanweb['util'].getLanguageCodes(Keyboards[j]['LanguageCode']);
var bcpSubtags: string[] = keymanweb['util']['getLanguageCodes'](Keyboards[j]['LanguageCode']);
if(bcpSubtags[0] == languageCode) continue; // Same language as previous keyboard
languageCode = bcpSubtags[0];
@ -351,7 +351,7 @@ if(!window['keyman']['ui']['name']) {
{
if(Keyboards[j]['RegionCode'] != i) continue; // Not this region
var bcpSubtags: string[] = keymanweb['util'].getLanguageCodes(Keyboards[j]['LanguageCode']);
var bcpSubtags: string[] = keymanweb['util']['getLanguageCodes'](Keyboards[j]['LanguageCode']);
if(bcpSubtags[0] == languageCode) { // Same language as previous keyboard, so add it to that entry
var x = ui.languages[languageCode].keyboards;