Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
afterxleep committed Nov 14, 2024
1 parent e176eab commit a69fa9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DuckDuckGo/Tab/TabExtensions/DuckPlayerTabExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ extension DuckPlayerTabExtension: NavigationResponder {
guard duckPlayer.isAvailable, duckPlayer.mode != .disabled else {
return decidePolicyWithDisabledDuckPlayer(for: navigationAction)
}

// Fires the Overlay Shown Pixel if not coming from DuckPlayer's Watch in Youtube
if !navigationAction.sourceFrame.url.isDuckPlayer {
fireOverlayShownPixelIfNeeded(url: navigationAction.url)
Expand Down Expand Up @@ -316,10 +316,10 @@ extension DuckPlayerTabExtension: NavigationResponder {
webView.goBack()
webView.load(URLRequest(url: .duckPlayer(videoID, timestamp: timestamp)))
}

// Fire Overlay Shown Pixels
fireOverlayShownPixelIfNeeded(url: navigation.url)

// Fire DuckPlayer Overlay Temporary Pixels
if let url = navigation.request.url {
duckPlayerOverlayUsagePixels.handleNavigationAndFirePixels(url: url, duckPlayerMode: duckPlayer.mode)
Expand Down

0 comments on commit a69fa9d

Please sign in to comment.