From da0878cdb39b082566740c08583bec1a54f37ea7 Mon Sep 17 00:00:00 2001 From: Stripes <46821970+danamag@users.noreply.github.com> Date: Wed, 26 Oct 2022 16:23:05 +0300 Subject: [PATCH] Update build.js --- build.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.js b/build.js index 9177785..ea0d3ff 100644 --- a/build.js +++ b/build.js @@ -126,7 +126,9 @@ needle.get(`https://${config['netlify-domain']}/lastUpdate.json`, config.needle, return } if (readingFor === 'language') { - meta[readingFor] = chunk.split('; ')[0].split(' (')[0].trim() + lang = chunk.split('; ')[0].split(' (')[0].trim() + if (lang !== '_No response_') + meta[readingFor] = lang return } meta[readingFor] += chunk