summaryrefslogtreecommitdiffstats
path: root/browser/components/newtab/lib/DiscoveryStreamFeed.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--browser/components/newtab/lib/DiscoveryStreamFeed.sys.mjs9
1 files changed, 8 insertions, 1 deletions
diff --git a/browser/components/newtab/lib/DiscoveryStreamFeed.sys.mjs b/browser/components/newtab/lib/DiscoveryStreamFeed.sys.mjs
index bff9f1e04e..e1f5dff6ce 100644
--- a/browser/components/newtab/lib/DiscoveryStreamFeed.sys.mjs
+++ b/browser/components/newtab/lib/DiscoveryStreamFeed.sys.mjs
@@ -564,10 +564,17 @@ export class DiscoveryStreamFeed {
}
generateFeedUrl(isBff) {
+ // check for experiment parameters
+ const hasParameters = lazy.NimbusFeatures.pocketNewtab.getVariable(
+ "pocketFeedParameters"
+ );
+
if (isBff) {
return `https://${Services.prefs.getStringPref(
"extensions.pocket.bffApi"
- )}/desktop/v1/recommendations?locale=$locale&region=$region&count=30`;
+ )}/desktop/v1/recommendations?locale=$locale&region=$region&count=30${
+ hasParameters || ""
+ }`;
}
return FEED_URL;
}