mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 09:56:36 +01:00
small script API additions
This commit is contained in:
@@ -170,6 +170,10 @@ async function getDateNote(dateStr) {
|
||||
return dateNote;
|
||||
}
|
||||
|
||||
async function getTodayNote() {
|
||||
return await getDateNote(dateUtils.localNowDate());
|
||||
}
|
||||
|
||||
function getStartOfTheWeek(date, startOfTheWeek) {
|
||||
const day = date.getDay();
|
||||
let diff;
|
||||
@@ -202,5 +206,6 @@ module.exports = {
|
||||
getYearNote,
|
||||
getMonthNote,
|
||||
getWeekNote,
|
||||
getDateNote
|
||||
getDateNote,
|
||||
getTodayNote
|
||||
};
|
||||
Reference in New Issue
Block a user