Skip to content

Commit

Permalink
isYoutubeVideoRecommendation is now redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Osbourne committed May 20, 2024
1 parent a14e5f3 commit 77f6955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DuckDuckGo/Tab/TabExtensions/DuckPlayerTabExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ extension DuckPlayerTabExtension: NewWindowPolicyDecisionMaker {
// from opening, and just load it inside the current one instead
if navigationAction.targetFrame == nil,
navigationAction.safeSourceFrame?.webView?.url?.isDuckPlayer == true,
navigationAction.request.url?.isYoutubeVideoRecommendation == true || navigationAction.request.url?.isYoutubeVideo == true,
navigationAction.request.url?.isYoutubeVideo == true,
let webView, let url = navigationAction.request.url {
webView.load(URLRequest(url: url))
return .cancel
Expand Down

0 comments on commit 77f6955

Please sign in to comment.