Skip to content

Commit

Permalink
feat: sync bookmarks every hour (#41)
Browse files Browse the repository at this point in the history
Given that we do not sync bookmarks if there haven't been any changes in the source
and thus will not show a notification to the user, we can now increase the frequency
of synchronization attempts.
  • Loading branch information
frederikb authored Feb 9, 2024
1 parent 84470fd commit 9c2ede8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Store bookmarks in a simple JSON structure in your organization's GitHub reposit

## 🚀 Features

- 🔄 **Automatic Synchronization**: Sync bookmarks every 4 hours and shortly after the browser starts.
- 🔄 **Automatic Synchronization**: Sync bookmarks every hour and shortly after the browser starts.
-**Manual Sync**: Need the latest bookmarks immediately? Trigger a sync manually.
- 🎯 **Selective Sync**: Syncs only the folders contained in the remote bookmark files without touching others you might have.
- 📁 **Multi-File Support**: Organize your organizations bookmarks into separate JSON files, for example by project.
Expand Down
2 changes: 1 addition & 1 deletion src/entrypoints/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default defineBackground({
jobs.scheduleJob({
id: 'sync-bookmarks',
type: 'interval',
duration: 1000 * 3600 * 4, // Runs every 4 hours
duration: 1000 * 3600, // Runs hourly
execute() {
console.log('Scheduled sync bookmarks job');
syncBookmarks();
Expand Down

0 comments on commit 9c2ede8

Please sign in to comment.