From 77f695543b01ca2fc964ae60f8c048b637e8915c Mon Sep 17 00:00:00 2001 From: Shane Osbourne Date: Mon, 20 May 2024 13:08:22 +0100 Subject: [PATCH] isYoutubeVideoRecommendation is now redundant --- DuckDuckGo/Tab/TabExtensions/DuckPlayerTabExtension.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DuckDuckGo/Tab/TabExtensions/DuckPlayerTabExtension.swift b/DuckDuckGo/Tab/TabExtensions/DuckPlayerTabExtension.swift index 3b3e5359ae..2d4ff743e7 100644 --- a/DuckDuckGo/Tab/TabExtensions/DuckPlayerTabExtension.swift +++ b/DuckDuckGo/Tab/TabExtensions/DuckPlayerTabExtension.swift @@ -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