File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
browser/components/newtab/lib Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -145,12 +145,19 @@ class DiscoveryStreamFeed {
145
145
if ( this . _isBff === undefined ) {
146
146
const pocketConfig =
147
147
this . store . getState ( ) . Prefs . values ?. pocketConfig || { } ;
148
+
149
+ const preffedLocaleListString = pocketConfig . localeListConfig || "" ;
150
+ const preffedLocales = preffedLocaleListString
151
+ . split ( "," )
152
+ . map ( s => s . trim ( ) ) ;
153
+ const localeEnabled = this . locale && preffedLocales . includes ( this . locale ) ;
154
+
148
155
const preffedRegionBffConfigString = pocketConfig . regionBffConfig || "" ;
149
156
const preffedRegionBffConfig = preffedRegionBffConfigString
150
157
. split ( "," )
151
158
. map ( s => s . trim ( ) ) ;
152
159
const regionBff = preffedRegionBffConfig . includes ( this . region ) ;
153
- this . _isBff = regionBff ;
160
+ this . _isBff = ! localeEnabled && regionBff ;
154
161
}
155
162
156
163
return this . _isBff ;
You can’t perform that action at this time.
0 commit comments