Skip to content

Commit

Permalink
Add support for Mishna Yomi
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Jan 20, 2022
1 parent 48b485e commit eb392e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/icalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const VTIMEZONE = {};
const CATEGORY = {
candles: 'Holiday',
dafyomi: 'Daf Yomi',
mishnayomi: 'Mishna Yomi',
havdalah: 'Holiday',
hebdate: null,
holiday: 'Holiday',
Expand Down Expand Up @@ -76,6 +77,8 @@ export class IcalEvent {
this.locationName = ev.locationName;
} else if (mask & flags.DAF_YOMI) {
this.locationName = Locale.gettext('Daf Yomi');
} else if (mask & flags.MISHNA_YOMI) {
this.locationName = Locale.gettext('Mishna Yomi');
} else if (timed && options.location && options.location.name) {
const comma = options.location.name.indexOf(',');
this.locationName = (comma == -1) ? options.location.name : options.location.name.substring(0, comma);
Expand Down Expand Up @@ -322,6 +325,7 @@ const torahMemoCache = new Map();

const HOLIDAY_IGNORE_MASK = flags.DAF_YOMI | flags.OMER_COUNT |
flags.SHABBAT_MEVARCHIM | flags.MOLAD | flags.USER_EVENT |
flags.MISHNA_YOMI |
flags.HEBREW_DATE;

/**
Expand Down

0 comments on commit eb392e6

Please sign in to comment.