Skip to content

Commit

Permalink
fix(ios): prevent message-handler collision
Browse files Browse the repository at this point in the history
Fixes: KEYMAN-IOS-1J
Fixes: #13036
Cherry-pick-of: #13037
  • Loading branch information
Joshua Horton committed Jan 28, 2025
1 parent ac90d3d commit 5ecb22d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 5ecb22d

Please sign in to comment.