Skip to content

Commit

Permalink
Include www.youtube.com as Youtube host (#1028)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/1204099484721401/1208593005609709/f
iOS PR:  duckduckgo/iOS#3455
macOS PR: duckduckgo/macos-browser#3434
What kind of version bump will this require?: Minor

**Description**:
We were missing www.youtube.com as a valid host for Youtube.
  • Loading branch information
afterxleep authored Nov 1, 2024
1 parent ddb358a commit 8602894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/DuckPlayer/DuckPlayerURLExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ extension URL {

public var isYoutube: Bool {
guard let host else { return false }
return host == "m.youtube.com" || host == "youtube.com"
return host == "m.youtube.com" || host == "youtube.com" || host == "www.youtube.com"
}

public func addingWatchInYoutubeQueryParameter() -> URL? {
Expand Down

0 comments on commit 8602894

Please sign in to comment.