electron upgrade to 2.0.0

This commit is contained in:
azivner
2018-05-08 16:39:01 -04:00
parent 66e7c6de62
commit b507abb4f7
4 changed files with 4918 additions and 3046 deletions

View File

@@ -31,6 +31,7 @@ async function getNoteStartingWith(parentNoteId, startsWith) {
}
async function getRootCalendarNote() {
// some caching here could be useful (e.g. in CLS)
let rootNote = await labelService.getNoteWithLabel(CALENDAR_ROOT_LABEL);
if (!rootNote) {
@@ -89,10 +90,8 @@ async function getMonthNote(dateTimeStr, rootNote) {
return monthNote;
}
async function getDateNote(dateTimeStr, rootNote = null) {
if (!rootNote) {
rootNote = await getRootCalendarNote();
}
async function getDateNote(dateTimeStr) {
const rootNote = await getRootCalendarNote();
const dateStr = dateTimeStr.substr(0, 10);
const dayNumber = dateTimeStr.substr(8, 2);