Skip to content

Commit

Permalink
Change behavior of feature flag turned off (#3097)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/72649045549333/1208037869675970/f

**Description**:
If the feature flag for autoplay is turned off, we should send autoplay
disabled to C-S-S
  • Loading branch information
Bunn authored Aug 13, 2024
1 parent e204899 commit ca9356c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DuckDuckGo/YoutubePlayer/DuckPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ final class DuckPlayer {

var isAutoplayEnabled = DuckPlayerPreferences.shared.duckPlayerAutoplay

/// If the feature flag is disabled, we want to turn autoPlay to true since this was the default
/// If the feature flag is disabled, we want to turn autoPlay to false
/// https://app.asana.com/0/1204167627774280/1207906550241281/f
if !isAutoplayFeatureEnabled {
isAutoplayEnabled = true
isAutoplayEnabled = false
}

// Disable WebView PiP if if the subFeature is off
Expand Down

0 comments on commit ca9356c

Please sign in to comment.