diff --git a/config-sample.ini b/config-sample.ini
index 0e8da0360..d419ed473 100644
--- a/config-sample.ini
+++ b/config-sample.ini
@@ -16,7 +16,7 @@ noBackup=false
# host=0.0.0.0
# port setting is relevant only for web deployments, desktop builds run on a fixed port (changeable with TRILIUM_PORT environment variable)
port=8080
-# true for TLS/SSL/HTTPS (secure), false for HTTP (unsecure).
+# true for TLS/SSL/HTTPS (secure), false for HTTP (insecure).
https=false
# path to certificate (run "bash bin/generate-cert.sh" to generate self-signed certificate). Relevant only if https=true
certPath=
diff --git a/docker_healthcheck.js b/docker_healthcheck.js
index 9213c401f..586b3a700 100755
--- a/docker_healthcheck.js
+++ b/docker_healthcheck.js
@@ -4,7 +4,7 @@ const fs = require("fs");
const dataDir = require("./src/services/data_dir");
const config = ini.parse(fs.readFileSync(dataDir.CONFIG_INI_PATH, 'utf-8'));
-if (config.https) {
+if (config.Network.https) {
// built-in TLS (terminated by trilium) is not supported yet, PRs are welcome
// for reverse proxy terminated TLS this will works since config.https will be false
process.exit(0);
diff --git a/src/becca/entities/bnote.js b/src/becca/entities/bnote.js
index c9d437e6c..ec7314b30 100644
--- a/src/becca/entities/bnote.js
+++ b/src/becca/entities/bnote.js
@@ -667,7 +667,7 @@ class BNote extends AbstractBeccaEntity {
return this.ownedAttributes.filter(attr => attr.name === name);
}
else {
- return this.ownedAttributes.slice();
+ return this.ownedAttributes;
}
}
diff --git a/src/becca/similarity.js b/src/becca/similarity.js
index 61bd02f45..b0ed39e13 100644
--- a/src/becca/similarity.js
+++ b/src/becca/similarity.js
@@ -367,7 +367,7 @@ async function findSimilarNotes(noteId) {
* We want to improve the standing of notes which have been created in similar time to each other since
* there's a good chance they are related.
*
- * But there's an exception - if they were created really close to each other (withing few seconds) then
+ * But there's an exception - if they were created really close to each other (within few seconds) then
* they are probably part of the import and not created by hand - these OTOH should not benefit.
*/
const {utcDateCreated} = candidateNote;
diff --git a/src/etapi/etapi.openapi.yaml b/src/etapi/etapi.openapi.yaml
index 2c6ca0d0d..b7de68b32 100644
--- a/src/etapi/etapi.openapi.yaml
+++ b/src/etapi/etapi.openapi.yaml
@@ -231,7 +231,7 @@ paths:
schema:
$ref: '#/components/schemas/EntityId'
get:
- description: Returns note content idenfied by its ID
+ description: Returns note content identified by its ID
operationId: getNoteContent
responses:
'200':
@@ -241,7 +241,7 @@ paths:
schema:
type: string
put:
- description: Updates note content idenfied by its ID
+ description: Updates note content identified by its ID
operationId: putNoteContentById
requestBody:
description: html content of note
diff --git a/src/public/app/services/attribute_autocomplete.js b/src/public/app/services/attribute_autocomplete.js
index bd0bc3af2..761d5dbeb 100644
--- a/src/public/app/services/attribute_autocomplete.js
+++ b/src/public/app/services/attribute_autocomplete.js
@@ -41,8 +41,8 @@ function initAttributeNameAutocomplete({ $el, attributeType, open }) {
async function initLabelValueAutocomplete({ $el, open, nameCallback }) {
if ($el.hasClass("aa-input")) {
- // we reinit everytime because autocomplete seems to have a bug where it retains state from last
- // open even though the value was resetted
+ // we reinit every time because autocomplete seems to have a bug where it retains state from last
+ // open even though the value was reset
$el.autocomplete('destroy');
}
diff --git a/src/public/app/services/note_autocomplete.js b/src/public/app/services/note_autocomplete.js
index 891f0ebb3..c27ae85d2 100644
--- a/src/public/app/services/note_autocomplete.js
+++ b/src/public/app/services/note_autocomplete.js
@@ -133,7 +133,7 @@ function initNoteAutocomplete($el, options) {
showRecentNotes($el);
// this will cause the click not give focus to the "show recent notes" button
- // this is important because otherwise input will lose focus immediatelly and not show the results
+ // this is important because otherwise input will lose focus immediately and not show the results
return false;
});
diff --git a/src/public/app/services/note_create.js b/src/public/app/services/note_create.js
index 28013eb46..8b8fb1a36 100644
--- a/src/public/app/services/note_create.js
+++ b/src/public/app/services/note_create.js
@@ -99,7 +99,7 @@ function parseSelectedHtml(selectedHtml) {
if (dom.length > 0 && dom[0].tagName && dom[0].tagName.match(/h[1-6]/i)) {
const title = $(dom[0]).text();
- // remove the title from content (only first occurence)
+ // remove the title from content (only first occurrence)
const content = selectedHtml.replace(dom[0].outerHTML, "");
return [title, content];
diff --git a/src/public/app/services/note_list_renderer.js b/src/public/app/services/note_list_renderer.js
index c619cada2..a60f8c731 100644
--- a/src/public/app/services/note_list_renderer.js
+++ b/src/public/app/services/note_list_renderer.js
@@ -161,7 +161,7 @@ class NoteListRenderer {
constructor($parent, parentNote, noteIds, showNotePath = false) {
this.$noteList = $(TPL);
- // note list must be added to the DOM immediatelly, otherwise some functionality scripting (canvas) won't work
+ // note list must be added to the DOM immediately, otherwise some functionality scripting (canvas) won't work
$parent.empty();
this.parentNote = parentNote;
diff --git a/src/public/app/services/server.js b/src/public/app/services/server.js
index 33b167c0e..48dece334 100644
--- a/src/public/app/services/server.js
+++ b/src/public/app/services/server.js
@@ -21,7 +21,7 @@ async function getHeaders(headers) {
}
if (utils.isElectron()) {
- // passing it explicitely here because of the electron HTTP bypass
+ // passing it explicitly here because of the electron HTTP bypass
allHeaders.cookie = document.cookie;
}
diff --git a/src/public/app/share.js b/src/public/app/share.js
index f92ae09ed..03ad92515 100644
--- a/src/public/app/share.js
+++ b/src/public/app/share.js
@@ -1,7 +1,7 @@
/**
* Fetch note with given ID from backend
*
- * @param noteId of the given note to be fetched. If falsy, fetches current note.
+ * @param noteId of the given note to be fetched. If false, fetches current note.
*/
async function fetchNote(noteId = null) {
if (!noteId) {
diff --git a/src/public/app/widgets/bulk_actions/abstract_bulk_action.js b/src/public/app/widgets/bulk_actions/abstract_bulk_action.js
index 21c2860c8..6bb01d256 100644
--- a/src/public/app/widgets/bulk_actions/abstract_bulk_action.js
+++ b/src/public/app/widgets/bulk_actions/abstract_bulk_action.js
@@ -26,7 +26,7 @@ export default class AbstractBulkAction {
}
}
- // to be overriden
+ // to be overridden
doRender() {}
async saveAction(data) {
diff --git a/src/public/app/widgets/buttons/right_dropdown_button.js b/src/public/app/widgets/buttons/right_dropdown_button.js
index 14c95acaa..d3b20a40e 100644
--- a/src/public/app/widgets/buttons/right_dropdown_button.js
+++ b/src/public/app/widgets/buttons/right_dropdown_button.js
@@ -50,7 +50,7 @@ export default class RightDropdownButtonWidget extends BasicWidget {
this.$widget.find(".dropdown-menu").append(this.$dropdownContent);
}
- // to be overriden
+ // to be overridden
async dropdownShow() {}
hideDropdown() {
diff --git a/src/public/app/widgets/dialogs/delete_notes.js b/src/public/app/widgets/dialogs/delete_notes.js
index c9953fe82..8f091971e 100644
--- a/src/public/app/widgets/dialogs/delete_notes.js
+++ b/src/public/app/widgets/dialogs/delete_notes.js
@@ -25,7 +25,7 @@ const TPL = `