Skip to content

Commit

Permalink
Merge pull request #13037 from keymanapp/fix/ios/prevent-message-hand…
Browse files Browse the repository at this point in the history
…ler-collision

fix(ios): prevent message-handler collision
  • Loading branch information
jahorton authored Feb 3, 2025
2 parents 8f89e70 + 7d24043 commit 1dae865
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,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 1dae865

Please sign in to comment.