Only Listen To Broadcast Events For Current Day? #17
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Is it possible to have the route only listen for events only on the current day of the event? I want my map to default to a certain route ....but not day of events.
right now it shows an event that's in 20 days, I don't need that route estimate right now obviously.
I think it would be something here?
// Let's see if we can handle it if (notification === "CALENDAR_EVENTS") { // Ok, we should be able to handle this for (var e in payload) { var event = payload[e]; if(event.location){ override = event.location; } if(override)break; } } else { Log.log(notification," notification type is not supported (yet)"); return; } // Update the destination override if needed if(override){ var o = this.state.overrideDestination; if(JSON.stringify(this.state.overrideDestination) != JSON.stringify(override)){ // New override this.state.overrideDestination = override; this.getDirections(); } }else if(this.state.overrideDestination){ // No more overrides this.state.overrideDestination = undefined; this.getDirections(); } }
The text was updated successfully, but these errors were encountered: