Skip to content

Commit

Permalink
Changed to registerInterval
Browse files Browse the repository at this point in the history
  • Loading branch information
jontstaz committed Oct 11, 2023
1 parent 9f8c5f1 commit 8aa421e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export default class LinkdingImportPlugin extends Plugin {
this.addSettingTab(new LinkdingImportSettingTab(this.app, this));

if (this.settings.updateInterval !== 0) {
setInterval(this.loadBookmarks.bind(this), this.settings.updateInterval * 60 * 1000);
this.registerInterval(this.settings.updateInterval * 60 * 1000);
this.registerInterval(window.setInterval(this.loadBookmarks.bind(this), this.settings.updateInterval * 60 * 1000));
}

this.addCommand({
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "linkding-importer",
"name": "Linkding Importer",
"version": "0.4.1",
"version": "0.4.2",
"minAppVersion": "0.15.0",
"description": "Imports your bookmarks from Linkding and saves them into a specified file within the Obsidian Vault.",
"author": "jontstaz",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkding-importer",
"version": "0.4.0",
"version": "0.4.2",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"main": "main.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"0.2.0": "0.15.0",
"0.3.0": "0.15.0",
"0.4.0": "0.15.0",
"0.4.1": "0.15.0"
"0.4.1": "0.15.0",
"0.4.2": "0.15.0"
}

0 comments on commit 8aa421e

Please sign in to comment.