Skip to content

Commit

Permalink
fix(ios): Reload webView on webViewWebContentProcessDidTerminate (#5391)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Jan 28, 2022
1 parent 4e84c04 commit beebff4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/Capacitor/Capacitor/WebViewDelegationHandler.swift
Expand Up @@ -146,6 +146,10 @@ internal class WebViewDelegationHandler: NSObject, WKNavigationDelegate, WKUIDel
CAPLog.print("⚡️ Error: " + error.localizedDescription)
}

public func webViewWebContentProcessDidTerminate(_ webView: WKWebView) {
webView.reload()
}

// MARK: - WKScriptMessageHandler

func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) {
Expand Down

0 comments on commit beebff4

Please sign in to comment.