mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-10 02:45:32 +00:00
Merge pull request #1629 from keymanapp/web-toolbar-minification-fix
[Web] Toolbar UI minification fix
This commit is contained in:
commit
d94c84dc4b
2 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
|||
# KeymanWeb Version History
|
||||
|
||||
## 2019-02-26 11.0.221 stable
|
||||
* Fixes bug with the Toolbar UI (#1629)
|
||||
|
||||
## 2019-02-25 11.0.220 stable
|
||||
* 11.0 Stable release
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue