Skip to content

Commit

Permalink
Dont open new tab for Youtube videos
Browse files Browse the repository at this point in the history
  • Loading branch information
afterxleep committed Dec 18, 2024
1 parent c59e80f commit 8c31c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DuckDuckGo/DuckPlayer/DuckPlayerNavigationHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ extension DuckPlayerNavigationHandler: DuckPlayerNavigationHandling {

// Redirect to Youtube + DuckPlayer Overlay if Ask Mode
if url.isYoutubeWatch && duckPlayerMode == .alwaysAsk && !isDuckPlayerRedirect(url: url) {
redirectToYouTubeVideo(url: url, webView: webView, allowFirstVideo: false)
redirectToYouTubeVideo(url: url, webView: webView, allowFirstVideo: false, disableNewTab: true)
return true
}

Expand Down

0 comments on commit 8c31c85

Please sign in to comment.