mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-24 08:37:42 +00:00
chore(web): Cleanup per review comments
This commit is contained in:
parent
d60954ef81
commit
786c223b98
1 changed files with 2 additions and 4 deletions
|
|
@ -1044,8 +1044,6 @@ namespace com.keyman.keyboards {
|
|||
// Register any local keyboards immediately:
|
||||
// - must specify filename, keyboard name, language codes, region codes
|
||||
// - no request will be sent to cloud
|
||||
let stub = x[i] as KeyboardStub;
|
||||
|
||||
if(typeof(x[i]['filename']) == 'string') {
|
||||
if(!this.addStub(x[i])) {
|
||||
this.keymanweb.util.internalAlert('To use a custom keyboard, you must specify file name, keyboard name, language, language code and region code.');
|
||||
|
|
@ -1087,7 +1085,7 @@ namespace com.keyman.keyboards {
|
|||
}
|
||||
|
||||
// Convert stub from one-to-many KeyboardStub[]
|
||||
let convertedStubs = KeyboardStub.toStubs(stub);
|
||||
let convertedStubs = KeyboardStub.toStubs(x[i]);
|
||||
convertedStubs.forEach(s => {
|
||||
if (s instanceof KeyboardStub) {
|
||||
keyboardStubs.push(s);
|
||||
|
|
@ -1563,7 +1561,7 @@ namespace com.keyman.keyboards {
|
|||
async _registerKeyboard(Pk) {
|
||||
// Ensure keymanweb is initialized before continuing to register keyboards
|
||||
if(!this.keymanweb.initialized) {
|
||||
let result = await this.deferment;
|
||||
await this.deferment;
|
||||
}
|
||||
|
||||
if(Pk['_kmw']) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue