Skip to content

Commit

Permalink
feat: Increase timeout for checking new day to 1000ms (#55)
Browse files Browse the repository at this point in the history
* feat: Increase timeout for checking new day to 1000ms

Increasing the setTimeout value for checkIsNewDay function to 1000ms
to allow more time for notes to be loaded before firing the notification.

* chore: Update version to 2.3.2 in manifest and package.json. Add version 2.3.2 to versions.json.
  • Loading branch information
Kageetai authored Apr 5, 2024
1 parent da5395e commit c3bd8cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "journal-review",
"name": "Journal Review",
"version": "2.3.1",
"version": "2.3.2",
"minAppVersion": "0.15.0",
"description": "Review your daily notes on their anniversaries, like \"what happened today last year\".",
"author": "Kageetai",
Expand All @@ -10,4 +10,4 @@
"fundingUrl": {
"Ko-Fi": "https://ko-fi.com/kageetai"
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-plugin-journal-review",
"version": "2.3.1",
"version": "2.3.2",
"description": "Review your daily notes on their anniversaries, like \"what happened today last year\"\n\n",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class JournalReviewPlugin extends Plugin {
if (this.settings.useNotifications) {
// setup event listener to check if it's a new day and fire notification if so
// need to wait for notes to be loaded
setTimeout(this.checkIsNewDay, 500);
setTimeout(this.checkIsNewDay, 1000);
addEventListener("focus", this.checkIsNewDay);
} else {
removeEventListener("focus", this.checkIsNewDay);
Expand Down
5 changes: 3 additions & 2 deletions versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
"2.1.1": "0.15.0",
"2.2.0": "0.15.0",
"2.3.0": "0.15.0",
"2.3.1": "0.15.0"
}
"2.3.1": "0.15.0",
"2.3.2": "0.15.0"
}

0 comments on commit c3bd8cf

Please sign in to comment.