aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2020-06-03 19:55:09 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2020-06-03 19:55:09 +0200
commit1498743f99625b574b51cee061a70bf271da93b7 (patch)
tree0c1d0c5d5d762a0603a0e6d6bdc27800a40215e0 /scripts
parentFix Gmail featured status (diff)
downloadferdium-recipes-1498743f99625b574b51cee061a70bf271da93b7.tar.gz
ferdium-recipes-1498743f99625b574b51cee061a70bf271da93b7.tar.zst
ferdium-recipes-1498743f99625b574b51cee061a70bf271da93b7.zip
Add support for keeping the featured status
Diffstat (limited to 'scripts')
-rw-r--r--scripts/api/package.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/api/package.js b/scripts/api/package.js
index f66f8d4..de7e641 100644
--- a/scripts/api/package.js
+++ b/scripts/api/package.js
@@ -155,9 +155,10 @@ For more information about the webview.js file visit https://github.com/getferdi
155 155
156 // Add recipe to all.json 156 // Add recipe to all.json
157 console.log('[Info] Adding to all.json'); 157 console.log('[Info] Adding to all.json');
158 const isFeatured = packageIndex !== -1 ? all[packageIndex].featured : false;
158 const packageInfo = { 159 const packageInfo = {
159 "author": config.author || '', 160 "author": config.author || '',
160 "featured": false, 161 "featured": isFeatured,
161 "id": config.id, 162 "id": config.id,
162 "name": config.name, 163 "name": config.name,
163 "version": config.version || '1.0.0', 164 "version": config.version || '1.0.0',