mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-26 09:37:40 +00:00
Merge pull request #2476 from keymanapp/fix/web/initializeUI-infinite-looping
fix(web): Prevents infinite loop (w timeout) for ui init when embedded
This commit is contained in:
commit
65fd8f5ac6
1 changed files with 4 additions and 0 deletions
|
|
@ -1631,6 +1631,10 @@ namespace com.keyman {
|
|||
// Display the OSK (again) if enabled, in order to set its position correctly after
|
||||
// adding the UI to the page
|
||||
this.keyman.osk._Show();
|
||||
} else if(this.keyman.isEmbedded) {
|
||||
// UI modules aren't utilized in embedded mode. There's nothing to init, so we simply
|
||||
// return instead of waiting for a UI module that will never come.
|
||||
return;
|
||||
} else {
|
||||
window.setTimeout(this.initializeUI.bind(this),1000);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue