mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
client/context menus/insert note: fix a typo again
This commit is contained in:
parent
4ffd005b09
commit
a45289e385
@ -208,7 +208,7 @@ async function isNewTemplate(templateNoteId) {
|
|||||||
|
|
||||||
// Determine the difference in days between now and the template's creation date
|
// Determine the difference in days between now and the template's creation date
|
||||||
const age = (new Date().getTime() - creationDate.getTime()) / DAY_LENGTH;
|
const age = (new Date().getTime() - creationDate.getTime()) / DAY_LENGTH;
|
||||||
// Return true if the template is at most NEW_TEMPLATE_MIN_AGE days old
|
// Return true if the template is at most NEW_TEMPLATE_MAX_AGE days old
|
||||||
return (age <= NEW_TEMPLATE_MAX_AGE)
|
return (age <= NEW_TEMPLATE_MAX_AGE)
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user