Fixed airing dates

This commit is contained in:
Eduard Urbach 2017-06-29 09:04:59 +02:00
parent 58e7c8a34d
commit b6d00684b7

View File

@ -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"