Skip to content

Commit

Permalink
patch pitfalls
Browse files Browse the repository at this point in the history
  • Loading branch information
LordGrimmauld committed Jan 15, 2023
1 parent 091d59c commit b13803e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ export default class ActivityWatchPlugin extends Plugin {
await this.loadSettings();
await this.init()

this.addSettingTab(new SampleSettingTab(this.app, this));
this.addSettingTab(new ObsidianWatcherSettingTab(this.app, this));

this.registerInterval(window.setInterval(() => {
const file = this.app.workspace.getActiveFile();
if (file != null) {
if (file) {
this.send_heartbeat_data(this.bucket_id, {
"file": file.basename,
"project": this.app.vault.getName(),
Expand All @@ -103,7 +103,7 @@ export default class ActivityWatchPlugin extends Plugin {
}
}

class SampleSettingTab extends PluginSettingTab {
class ObsidianWatcherSettingTab extends PluginSettingTab {
plugin: ActivityWatchPlugin;

constructor(app: App, plugin: ActivityWatchPlugin) {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"description": "This is a plugin bridging compatibility between ActivityWatch and Obsidian.",
"author": "Grimmauld",
"authorUrl": "https://github.com/LordGrimmauld",
"isDesktopOnly": false
"isDesktopOnly": true
}

0 comments on commit b13803e

Please sign in to comment.