mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
fix(ios): adds check for WebView crash on redisplay, reloads page if so
Relates-to: #8566 Fixes: #11259 Fixes: #14163
This commit is contained in:
parent
193fb75a60
commit
220691bfd9
1 changed files with 5 additions and 1 deletions
|
|
@ -182,7 +182,7 @@ extension KeymanWebViewController {
|
|||
}
|
||||
view = nil
|
||||
}
|
||||
|
||||
|
||||
func languageMenuPosition(_ completion: @escaping (CGRect) -> Void) {
|
||||
webView!.evaluateJavaScript("langMenuPos();") { result, _ in
|
||||
guard let result = result as? String, !result.isEmpty else {
|
||||
|
|
@ -588,6 +588,10 @@ extension KeymanWebViewController: WKNavigationDelegate {
|
|||
keyboardLoaded(self)
|
||||
delegate?.keyboardLoaded(self)
|
||||
}
|
||||
|
||||
func webViewWebContentProcessDidTerminate(_ webView: WKWebView) {
|
||||
reloadKeyboard()
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - KeymanWebDelegate
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue