Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created March 11, 2019 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/80301375ebd997814b4e0ea60fc4cf71 to your computer and use it in GitHub Desktop.
Save iaindooley/80301375ebd997814b4e0ea60fc4cf71 to your computer and use it in GitHub Desktop.
Remind on due date
function scheduleRemindOnDueDate(notification)
{
new Notification(notification).actionOnDueDateAdded("actionReminder",signature);
}
function scheduleRemind3DaysPrior(notification,signature)
{
new Notification(notification).actionOnDueDateAdded("actionReminder",signature,function(date)
{
date.minusDays(3);
});
}
function actionReminder(notification)
{
new Notification(notification).card().postComment("@card");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment