Fixed airing dates
This commit is contained in:
parent
58e7c8a34d
commit
b6d00684b7
@ -100,10 +100,13 @@ export class AnimeNotifier {
|
|||||||
switch(dayDifference) {
|
switch(dayDifference) {
|
||||||
case 0:
|
case 0:
|
||||||
element.innerText = "Today"
|
element.innerText = "Today"
|
||||||
|
break
|
||||||
case 1:
|
case 1:
|
||||||
element.innerText = "Tomorrow"
|
element.innerText = "Tomorrow"
|
||||||
|
break
|
||||||
case -1:
|
case -1:
|
||||||
element.innerText = "Yesterday"
|
element.innerText = "Yesterday"
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
let text = Math.abs(dayDifference) + " days"
|
let text = Math.abs(dayDifference) + " days"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user