From 63df7e40f1f32a2d2e2bd375599b5ec1cf89e438 Mon Sep 17 00:00:00 2001 From: Daniel Bernal Date: Thu, 17 Oct 2024 15:31:13 +0200 Subject: [PATCH] Do not notify the FE on experiment activation --- .../DuckPlayerNavigationHandler.swift | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/DuckDuckGo/DuckPlayer/DuckPlayerNavigationHandler.swift b/DuckDuckGo/DuckPlayer/DuckPlayerNavigationHandler.swift index b2316a331e..56b19fa5dc 100644 --- a/DuckDuckGo/DuckPlayer/DuckPlayerNavigationHandler.swift +++ b/DuckDuckGo/DuckPlayer/DuckPlayerNavigationHandler.swift @@ -228,15 +228,15 @@ final class DuckPlayerNavigationHandler { // Enroll user if not enrolled if !experiment.isEnrolled { experiment.assignUserToCohort() - } - - // DuckPlayer is disabled before user enrolls, - // So trigger a settings change notification - // to let the FE know about the 'actual' setting - // and update Experiment value - if experiment.isExperimentCohort { - duckPlayer.settings.triggerNotification() - experiment.duckPlayerMode = duckPlayer.settings.mode + + // DuckPlayer is disabled before user enrolls, + // So trigger a settings change notification + // to let the FE know about the 'actual' setting + // and update Experiment value + if experiment.isExperimentCohort { + duckPlayer.settings.triggerNotification() + experiment.duckPlayerMode = duckPlayer.settings.mode + } } experiment.fireYoutubePixel(videoID: videoID)