Can force message to appear

This commit is contained in:
Pierre HUBERT 2020-05-08 11:10:17 +02:00
parent e5db80c2c6
commit 93ff4e9049

View File

@ -7,16 +7,18 @@
/** /**
* Check if it is Manon's birthday * Check if it is Manon's birthday
*/ */
async function checkManonBirthday() { async function checkManonBirthday(force) {
// Manon's feature only if(force !== true) {
if(userID() !== 150) // Manon's feature only
return; if(userID() !== 150)
return;
const date = new Date();
const date = new Date();
if(date.getMonth() != 4 && date.getDay() != 8)//TODO: replace if(date.getMonth() != 4 && date.getDay() != 8)//TODO: replace
return; return;
}
// Load clippy // Load clippy
const css = document.createElement("link"); const css = document.createElement("link");