Skip to content

Commit

Permalink
Increase update interval and remove unnecessary manual update command
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarrett committed Aug 6, 2021
1 parent 5bcda39 commit 24081d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
10 changes: 1 addition & 9 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,9 @@ export default class PhoneToRoamPlugin extends Plugin {
async onload() {
await this.loadSettings();

this.addCommand({
id: 'sync-phone-to-roam-to-obsidian',
name: 'Get new notes',
callback: () => {
this.getPhoneToRoam();
}
});

this.addSettingTab(new PhoneToRoamSettingTab(this.app, this));

this.registerInterval(window.setInterval(this.getPhoneToRoam.bind(this), 10 * 1000));
this.registerInterval(window.setInterval(this.getPhoneToRoam.bind(this), 60 * 1000));
this.getPhoneToRoam();
}

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": "phone-to-roam-to-obsidian",
"name": "Phone to Roam to Obsidian",
"version": "1.0.0",
"version": "1.0.1",
"minAppVersion": "0.9.12",
"description": "An Obsidian client for phonetoroam.com",
"author": "Dylan Garrett",
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"1.0.0": "0.9.12"
"1.0.0": "0.9.12",
"1.0.1": "0.9.12"
}

0 comments on commit 24081d6

Please sign in to comment.