Skip to content

Commit

Permalink
fix: prevent past events broadcasting
Browse files Browse the repository at this point in the history
  • Loading branch information
randomBrainstormer committed May 27, 2023
1 parent daf9e9c commit 7bac816
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions MMM-GoogleCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ Module.register("MMM-GoogleCalendar", {
broadcastEvents: false,
excludedEvents: [],
sliceMultiDayEvents: false,
nextDaysRelative: false
nextDaysRelative: false,
broadcastPastEvents: false,
},

requiresVersion: "2.1.0",
Expand Down Expand Up @@ -770,7 +771,8 @@ Module.register("MMM-GoogleCalendar", {
fetchInterval: this.config.fetchInterval,
symbolClass: calendarConfig.symbolClass,
titleClass: calendarConfig.titleClass,
timeClass: calendarConfig.timeClass
timeClass: calendarConfig.timeClass,
broadcastPastEvents: calendarConfig.broadcastPastEvents || this.config.broadcastPastEvents,
});
},

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mmm-googlecalendar",
"version": "1.1.0",
"version": "1.1.1",
"displayName": "MMM-GoogleCalendar",
"description": "Display your Google calendars in MagicMirror (including google's family calendar) without using iCals nor any public calendar. ",
"main": "MMM-GoogleCalendar.js",
Expand Down

0 comments on commit 7bac816

Please sign in to comment.