mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-31 20:57:41 +00:00
fix(web): Check addKeyboards() for empty args
This commit is contained in:
parent
5d1a652314
commit
d60954ef81
1 changed files with 1 additions and 1 deletions
|
|
@ -323,7 +323,7 @@ namespace com.keyman {
|
|||
*/
|
||||
async ['addKeyboards'](...args: any[]) :
|
||||
Promise<(com.keyman.keyboards.KeyboardStub|com.keyman.keyboards.ErrorStub)[]> {
|
||||
if (args[0].length == 0) {
|
||||
if (!args || !args[0] || args[0].length == 0) {
|
||||
// Get the cloud keyboard catalog
|
||||
let stubs: (com.keyman.keyboards.KeyboardStub|com.keyman.keyboards.ErrorStub)[] = [];
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue