Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fixed for *.youtube.com using the base domain.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon-T committed Jun 22, 2020
1 parent 7a95811 commit c279ad8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ extension BrowserViewController: WKNavigationDelegate {

let isPrivateBrowsing = PrivateBrowsingManager.shared.isPrivateBrowsing

if url.host == "youtube.com" || url.host == "m.youtube.com" {
if url.baseDomain == "youtube.com" {
let domain = Domain.getOrCreate(forUrl: url, persistent: !isPrivateBrowsing)
tabManager[webView]?.userScriptManager?.isYoutubeAdblockEnabled = domain.isShieldExpected(.AdblockAndTp, considerAllShieldsOption: true)
}
Expand Down

0 comments on commit c279ad8

Please sign in to comment.