From 93ff4e9049fc571bca8bd7b63d02855cbe98328f Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 8 May 2020 11:10:17 +0200 Subject: [PATCH] Can force message to appear --- assets/js/components/manon.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/assets/js/components/manon.js b/assets/js/components/manon.js index 4938bb54..555f4cc8 100644 --- a/assets/js/components/manon.js +++ b/assets/js/components/manon.js @@ -7,16 +7,18 @@ /** * Check if it is Manon's birthday */ -async function checkManonBirthday() { +async function checkManonBirthday(force) { - // Manon's feature only - if(userID() !== 150) - return; - - const date = new Date(); + if(force !== true) { + // Manon's feature only + if(userID() !== 150) + return; + + const date = new Date(); - if(date.getMonth() != 4 && date.getDay() != 8)//TODO: replace - return; + if(date.getMonth() != 4 && date.getDay() != 8)//TODO: replace + return; + } // Load clippy const css = document.createElement("link");