From 3977ffda2f0603bb3aca0e034a88b802e591fe3e Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Tue, 5 Jul 2022 15:36:21 +1000 Subject: [PATCH] fix(web): remove spurious log "No keyboard stubs exist" This error has been logged for every start of Keyman Engine for Web in embedded contexts, but nothing bad ever happens. It does not really seem to be anything we need to worry about. (It may be that the `setDefaultKeyboard()` call will never return true, but it is still harmless in any case.) --- web/source/dom/domManager.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/source/dom/domManager.ts b/web/source/dom/domManager.ts index 6c1cefe188..aeeb1b0130 100644 --- a/web/source/dom/domManager.ts +++ b/web/source/dom/domManager.ts @@ -1623,9 +1623,7 @@ namespace com.keyman.dom { // Exit initialization here if we're using an embedded code path. if(this.keyman.isEmbedded) { - if(!this.keyman.keyboardManager.setDefaultKeyboard()) { - console.error("No keyboard stubs exist - cannot initialize keyboard!"); - } + this.keyman.keyboardManager.setDefaultKeyboard(); return Promise.resolve(); }