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.)
This commit is contained in:
Marc Durdin 2022-07-05 15:36:21 +10:00
parent 88c7363ab7
commit 3977ffda2f

View file

@ -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();
}