Merge pull request #64 from ThinaticSystem:Thinatic/perf-april-fool-evaluation
perf エイプリルフールのif文評価を高速化
This commit is contained in:
commit
a38e1cda40
@ -76,7 +76,7 @@ const tick = () => {
|
||||
const ny = now.getFullYear();
|
||||
|
||||
year.value = ny;
|
||||
if (nm + 1 === 4 && nd === 1) { // エイプリルフール
|
||||
if (nd === 1 && nm + 1 === 4) { // エイプリルフール
|
||||
month.value = 3;
|
||||
day.value = 32;
|
||||
} else { // 通常
|
||||
|
Loading…
x
Reference in New Issue
Block a user