diff options
-rwxr-xr-x | src/upd8.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/upd8.js b/src/upd8.js index 408ad884..b1340989 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -1162,7 +1162,10 @@ async function main() { }); const customDefaultLanguage = - languages[wikiData.wikiInfo.defaultLanguage ?? internalDefaultLanguage.code]; + (wikiData.wikiInfo.defaultLanguage + ? languages[wikiData.wikiInfo.defaultLanguage] + : null); + let finalDefaultLanguage; if (customDefaultLanguage) { |