From 813a59473cb73309125a336cda684a2027233e2f Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Mon, 1 Jun 2020 22:27:08 +0200 Subject: [PATCH] add default values for a better experience --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 92fb993..894f1a1 100644 --- a/index.js +++ b/index.js @@ -353,8 +353,8 @@ function init() { data.json().then(obj => { setupAutocompleteList($('models'), Object.keys(obj['models']), model => { if (model in obj['models']) { - var url = obj.url; - var code = obj.version_code; + var url = obj.url || 'unknown'; + var code = obj.version_code || 'unknown'; var date = obj.build_data || 'unknown'; var mobj = obj['models'][model]; updateImages(version, code, date, model, url, mobj, false); -- 2.30.2