mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-13 19:17:44 +00:00
fix(ios): prevent message-handler collision
Fixes: KEYMAN-IOS-1J Fixes: #13036 Cherry-pick-of: #13037
This commit is contained in:
parent
ac90d3df42
commit
5ecb22d8d5
1 changed files with 3 additions and 0 deletions
|
|
@ -165,6 +165,9 @@ class KeymanWebViewController: UIViewController {
|
|||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
super.viewWillAppear(animated)
|
||||
if #available(iOSApplicationExtension 14.0, *) {
|
||||
self.userContentController.removeAllScriptMessageHandlers()
|
||||
}
|
||||
self.userContentController.add(self, name: keymanWebViewName)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue