Skip to content

Commit

Permalink
Fix build in Xcode 13.2 (#378)
Browse files Browse the repository at this point in the history
* Fix build in Xcode 13.2
  • Loading branch information
mallexxx authored and jonathanKingston committed Dec 29, 2021
1 parent 44c13ed commit 7a69dfc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DuckDuckGo/BrowserTab/Model/Tab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ extension Tab: ContentBlockerRulesUserScriptDelegate {
func contentBlockerRulesUserScript(_ script: ContentBlockerRulesUserScript, detectedTracker tracker: DetectedTracker) {
trackerInfo?.add(detectedTracker: tracker)
}

}

extension Tab: SurrogatesUserScriptDelegate {
Expand Down Expand Up @@ -838,13 +839,13 @@ extension Tab: WKNavigationDelegate {
}
}

@available(macOS 12, *)
@available(macOS 11.3, *)
@objc(webView:navigationAction:didBecomeDownload:)
func webView(_ webView: WKWebView, navigationAction: WKNavigationAction, didBecome download: WKDownload) {
self.webView(webView, navigationAction: navigationAction, didBecomeDownload: download)
}

@available(macOS 12, *)
@available(macOS 11.3, *)
@objc(webView:navigationResponse:didBecomeDownload:)
func webView(_ webView: WKWebView, navigationResponse: WKNavigationResponse, didBecome download: WKDownload) {
self.webView(webView, navigationResponse: navigationResponse, didBecomeDownload: download)
Expand Down

0 comments on commit 7a69dfc

Please sign in to comment.