From fea67dbe1516fbf765de9a45631684979aeb0a3f Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Sun, 23 May 2021 15:11:02 +0200 Subject: If no value given use the default mod message --- settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.js b/settings.js index 7fc0631..db0cd4c 100644 --- a/settings.js +++ b/settings.js @@ -86,7 +86,7 @@ function set_mod_message(event) { if (event && event.target.value.replace(/\s/g, "")) localStorage.setItem("custom_mod_message", event.target.value); - else if (!localStorage.getItem("custom_mod_message")) { + else { if (event) event.target.value = mod_message_default; localStorage.setItem("custom_mod_message", mod_message_default); -- cgit v1.2.3