diff --git a/Sparkle/SULegacyWebView.m b/Sparkle/SULegacyWebView.m index f266a103..73244c8f 100644 --- a/Sparkle/SULegacyWebView.m +++ b/Sparkle/SULegacyWebView.m @@ -18,9 +18,11 @@ @end @protocol WebPolicyDelegate @end +@protocol WebUIDelegate +@end #endif -@interface SULegacyWebView () +@interface SULegacyWebView () @property (nonatomic, readonly) WebView *webView; @property (nonatomic) void (^completionHandler)(NSError * _Nullable); @@ -57,6 +59,7 @@ _webView.preferences = preferences; _webView.policyDelegate = self; _webView.frameLoadDelegate = self; + _webView.UIDelegate = self; } return self; }