Skip to content
This repository has been archived by the owner on Feb 29, 2020. It is now read-only.

Commit

Permalink
fix (addon): #2081 use asyncGetTopNewTabSites in screenshots experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
rlr committed Jan 26, 2017
1 parent a8eec34 commit a21179b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addon/Feeds/TopSitesFeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ module.exports = class TopSitesFeed extends Feed {
return Task.spawn(function*() {
const experiments = this.store.getState().Experiments.values;

let links;
// Get links from places
let links = yield experiments.originalNewTabSites ? PlacesProvider.links.asyncGetTopNewTabSites() : PlacesProvider.links.getTopFrecentSites();
if (experiments.originalNewTabSites || experiments.screenshots) {
links = yield PlacesProvider.links.asyncGetTopNewTabSites();
} else {
links = yield PlacesProvider.links.getTopFrecentSites();
}

// Get metadata from PreviewProvider
links = yield this.options.getCachedMetadata(links, "TOP_FRECENT_SITES_RESPONSE");
Expand Down

0 comments on commit a21179b

Please sign in to comment.