Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Products: Use new source param to specify result provider (#3472)
Browse files Browse the repository at this point in the history
* Use new source param to specify result provider

* Select no-transformation template for the source name
  • Loading branch information
moollaza authored Jan 30, 2018
1 parent 35cd0f8 commit e34c0c5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions share/spice/amazon/amazon.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,18 @@
};
}

var source = api_result.source;

Spice.add({
id: 'products',
name: 'Products',
data: api_result.results,
answerType: 'Products',
allowMultipleCalls: true,
meta: {
itemType: 'Amazon ' + l('Results'),
sourceName: 'Amazon',
itemType: source + ' ' + l('Results'),
sourceNoTransform: true,
sourceName: source,
sourceUrl: api_result.more_at,
sourceIcon: true,
rerender: [
Expand Down

0 comments on commit e34c0c5

Please sign in to comment.