aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMango0x45 <thomasvoss@live.com> 2021-05-23 15:11:02 +0200
committerMango0x45 <thomasvoss@live.com> 2021-05-23 15:11:02 +0200
commitfea67dbe1516fbf765de9a45631684979aeb0a3f (patch)
tree0efa705a554ff81e432eef41536a2fa29146cc02
parentd402cc0905b1d3301678ada1197fc8d059a6b395 (diff)
If no value given use the default mod message
-rw-r--r--settings.js2
1 files changed, 1 insertions, 1 deletions
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);