Skip to content

Commit

Permalink
Added priority to notification
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser authored Nov 13, 2020
1 parent 4289fdd commit 7806bd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ function checkNotification (data) {
type: 'basic',
iconUrl: 'assets/icon-128.png',
title: 'Fasting Reminder',
message: chrome.i18n.getMessage('fasting_notification')
message: chrome.i18n.getMessage('fasting_notification'),
priority: 2
});
}

Expand All @@ -54,4 +55,4 @@ function isFastingDay (day, dayOfWeek, holidays, dayBeforeHolidays, dayAfterHoli
return day == 13 || day == 14 || day == 15 || dayOfWeek == "Monday" || dayOfWeek == "Thursday" ||
holidays.includes("Ashura") || holidays.includes("Arafa") || dayBeforeHolidays.includes("Ashura") ||
dayAfterHolidays.includes("Ashura");
}
}

0 comments on commit 7806bd0

Please sign in to comment.