Skip to content

Comments

fix: prevent KeymanWeb load of keyboards that do not have .js versions#1821

Merged
mcdurdin merged 1 commit intomasterfrom
fix/13043-handle-errors-loading-keyboards-and-dont-load-non-js-keyboards
Jan 28, 2025
Merged

fix: prevent KeymanWeb load of keyboards that do not have .js versions#1821
mcdurdin merged 1 commit intomasterfrom
fix/13043-handle-errors-loading-keyboards-and-dont-load-non-js-keyboards

Conversation

@mcdurdin
Copy link
Member

Also adds a console.error catch() reporter so we don't get unhandled promise rejections in the event that the keyboard fetch fails for any reason.

Fixes: keymanapp/keyman#13043

Also adds a console.error catch() reporter so we don't get unhandled
promise rejections in the event that the keyboard fetch fails for any
reason.

Fixes: keymanapp/keyman#13043
@mcdurdin mcdurdin added this to the A18S20 milestone Jan 27, 2025
@mcdurdin mcdurdin added the fix label Jan 27, 2025
Comment on lines +188 to +190
if(data.platformSupport?.desktopWeb || data.platformSupport?.mobileWeb) {
loadKeymanWebKeyboard(keyboardName);
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where the test for a keyboard supporting web has been added, so this call now happens before the KeymanWeb call.

@mcdurdin mcdurdin merged commit 1b94535 into master Jan 28, 2025
4 checks passed
@mcdurdin mcdurdin deleted the fix/13043-handle-errors-loading-keyboards-and-dont-load-non-js-keyboards branch January 28, 2025 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

bug(web): missing keyboard seems to generate unhandled exception in promise

2 participants