diff --git a/Source/Turbo/Navigator/WKUIController.swift b/Source/Turbo/Navigator/WKUIController.swift index c05d541..16dfb22 100644 --- a/Source/Turbo/Navigator/WKUIController.swift +++ b/Source/Turbo/Navigator/WKUIController.swift @@ -22,7 +22,7 @@ open class WKUIController: NSObject, WKUIDelegate { open func webView(_ webView: WKWebView, runJavaScriptConfirmPanelWithMessage message: String, initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping (Bool) -> Void) { let alert = UIAlertController(title: message, message: nil, preferredStyle: .alert) - alert.addAction(UIAlertAction(title: "OK", style: .destructive) { _ in + alert.addAction(UIAlertAction(title: "OK", style: .default) { _ in completionHandler(true) }) alert.addAction(UIAlertAction(title: "Cancel", style: .cancel) { _ in