Merge pull request #4 from crackosok/master

add possibility to set turbo false
This commit is contained in:
LightAir
2020-12-01 20:21:44 +03:00
committed by GitHub

View File

@@ -48,7 +48,7 @@ function addRelated(related, itemValues, relatedfinity) {
function items(items, channel) {
items.forEach(function (item) {
let item_values = [];
item_values.push({_attr: {'turbo': 'true'}});
item_values.push({_attr: {'turbo': item.turboEnabled ? 'true' : 'false'}});
item_values.push({link: item.url});
ifTruePush(item.turboSource, item_values, {'turbo:source': item.turboSource});
@@ -143,6 +143,7 @@ function itemData(data) {
turboSource: data.turboSource || '',
turboTopic: data.turboTopic || '',
goals: data.goals || [],
turboEnabled: data.turboEnabled || true,
};
}
/**