From 99050b86b0b5301c7700c900a810e58bd075774c Mon Sep 17 00:00:00 2001 From: Esenjin Date: Sat, 3 Feb 2024 12:49:36 +0100 Subject: [PATCH] =?UTF-8?q?je=20ne=20gal=C3=A8re=20presque=20pas=20non=20.?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- desktop/head_tag.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/desktop/head_tag.html b/desktop/head_tag.html index 61d8979..eadb2d1 100644 --- a/desktop/head_tag.html +++ b/desktop/head_tag.html @@ -167,8 +167,9 @@ const defaultButtons = { // Assign default values if translations are not present Object.keys(defaultButtons).forEach(key => { - translations.composer[key + "_title"] = settings[key] ? settings[key].default : defaultButtons[key]; - translations.composer[key + "_text"] = settings[key + "_text"] ? settings[key + "_text"].default : defaultButtons[key]; + translations.composer[key + "_title"] = settings[key] && settings[key].default ? settings[key].default : defaultButtons[key]; + translations.composer[key + "_text"] = settings[key + "_text"] && settings[key + "_text"].default ? settings[key + "_text"].default : defaultButtons[key]; }); + -- 2.45.2