mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-11 00:17:28 +00:00
change(ios): adjust the new reset-attempt mechanism
This commit is contained in:
parent
097f96c5bf
commit
94fadb8d06
1 changed files with 9 additions and 5 deletions
|
|
@ -238,12 +238,16 @@ class KeymanWebViewController: UIViewController {
|
|||
self.userContentController.removeAllScriptMessageHandlers()
|
||||
|
||||
// Work around for #14163.
|
||||
if let ivc = self.parent as? InputViewController,
|
||||
ivc.isSystemKeyboard,
|
||||
!ivc.hasFullAccess,
|
||||
!firstLoad {
|
||||
webViewWebContentProcessDidTerminate(webView!)
|
||||
if !firstLoad {
|
||||
if let ivc = self.parent as? InputViewController,
|
||||
ivc.isSystemKeyboard,
|
||||
!ivc.hasFullAccess {
|
||||
// Prevent looping WebView resets!
|
||||
firstLoad = true
|
||||
webViewWebContentProcessDidTerminate(webView!)
|
||||
}
|
||||
}
|
||||
|
||||
firstLoad = false
|
||||
self.userContentController.add(self, name: keymanWebViewName)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue