Fix ES6 syntax bug on RaspberryPi Zero W

Following this issue https://github.com/MichMich/MagicMirror/issues/694 it seems that the Midori Browser does not recoginize ES6 syntax. Further, the use of 'var' is seen throughout the calendar module excpet on line 439, where the error is reported
This commit is contained in:
Elan Trybuch 2018-08-16 11:45:34 -04:00
parent 6aa156d956
commit d4ec4795c3

View File

@ -436,7 +436,7 @@ Module.register("calendar", {
listContainsEvent: function(eventList, event){ listContainsEvent: function(eventList, event){
for(let evt of eventList){ for(var evt of eventList){
if(evt.title === event.title && parseInt(evt.startDate) === parseInt(event.startDate)){ if(evt.title === event.title && parseInt(evt.startDate) === parseInt(event.startDate)){
return true; return true;
} }