From 186c69924b0af1b56c949aead0fad89c56474b4e Mon Sep 17 00:00:00 2001 From: Daniel Bernal Date: Tue, 12 Nov 2024 14:46:48 +0100 Subject: [PATCH] Lint fixes --- DuckDuckGo/Statistics/GeneralPixel.swift | 6 +++--- DuckDuckGo/Tab/TabExtensions/DuckPlayerTabExtension.swift | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/DuckDuckGo/Statistics/GeneralPixel.swift b/DuckDuckGo/Statistics/GeneralPixel.swift index f16a96df8b..2297918c6e 100644 --- a/DuckDuckGo/Statistics/GeneralPixel.swift +++ b/DuckDuckGo/Statistics/GeneralPixel.swift @@ -135,7 +135,7 @@ enum GeneralPixel: PixelKitEventV2 { case duckPlayerNewTabSettingsOff case duckPlayerContingencySettingsDisplayed case duckPlayerContingencyLearnMoreClicked - + // Temporary Overlay Pixels case duckPlayerYouTubeOverlayNavigationBack case duckPlayerYouTubeOverlayNavigationRefresh @@ -143,7 +143,7 @@ enum GeneralPixel: PixelKitEventV2 { case duckPlayerYouTubeOverlayNavigationOutsideYoutube case duckPlayerYouTubeOverlayNavigationClosed case duckPlayerYouTubeNavigationIdle30 - + // Dashboard case dashboardProtectionAllowlistAdd(triggerOrigin: String?) case dashboardProtectionAllowlistRemove(triggerOrigin: String?) @@ -1124,7 +1124,7 @@ enum GeneralPixel: PixelKitEventV2 { case .pageRefreshThreeTimesWithin20Seconds: return "m_mac_reload-three-times-within-20-seconds" case .siteNotWorkingShown: return "m_mac_site-not-working_shown" case .siteNotWorkingWebsiteIsBroken: return "m_mac_site-not-working_website-is-broken" - + } } diff --git a/DuckDuckGo/Tab/TabExtensions/DuckPlayerTabExtension.swift b/DuckDuckGo/Tab/TabExtensions/DuckPlayerTabExtension.swift index 8051e1baf2..9c89a654a1 100644 --- a/DuckDuckGo/Tab/TabExtensions/DuckPlayerTabExtension.swift +++ b/DuckDuckGo/Tab/TabExtensions/DuckPlayerTabExtension.swift @@ -208,14 +208,14 @@ extension DuckPlayerTabExtension: NavigationResponder { navigator.load(URLRequest(url: .duckPlayer(videoID, timestamp: timestamp))) } } - + // Fire DuckPlayer Temporary Pixels on Reload if case .reload = navigationAction.navigationType { if let url = navigationAction.request.url { duckPlayerOverlayUsagePixels.handleNavigationAndFirePixels(url: url, duckPlayerMode: duckPlayer.mode) } } - + // when in Private Player, don't directly reload current URL when it‘s a Private Player target URL if case .reload = navigationAction.navigationType, navigationAction.url.isDuckPlayer { @@ -281,7 +281,7 @@ extension DuckPlayerTabExtension: NavigationResponder { webView.goBack() webView.load(URLRequest(url: .duckPlayer(videoID, timestamp: timestamp))) } - + // Fire DuckPlayer Overlay Temporary Pixels if let url = navigation.request.url { duckPlayerOverlayUsagePixels.handleNavigationAndFirePixels(url: url, duckPlayerMode: duckPlayer.mode)