diff --git a/main.js b/main.js index c7ef952..d6071e4 100644 --- a/main.js +++ b/main.js @@ -1181,13 +1181,13 @@ var GitHubContributionsPlugin = class extends import_obsidian.Plugin { async activateView() { const existing = this.app.workspace.getLeavesOfType(VIEW_TYPE); if (existing.length > 0) { - this.app.workspace.revealLeaf(existing[0]); + void this.app.workspace.revealLeaf(existing[0]); return; } const leaf = this.app.workspace.getRightLeaf(false); if (leaf) { await leaf.setViewState({ type: VIEW_TYPE, active: true }); - this.app.workspace.revealLeaf(leaf); + void this.app.workspace.revealLeaf(leaf); } } async loadSettings() { diff --git a/manifest.json b/manifest.json index 66d9b02..821e266 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "github-contributions", "name": "GitHub Contributions", - "version": "1.0.4", + "version": "1.0.5", "minAppVersion": "1.0.0", "description": "View GitHub and local Git contributions directly in the sidebar with streak tracking, repository breakdowns, color palettes, and daily note integration.", "author": "gearheaded", diff --git a/package.json b/package.json index be06af8..1c5616c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-github-contributions", - "version": "1.0.4", + "version": "1.0.5", "description": "GitHub contribution graph for Obsidian", "main": "main.js", "scripts": { diff --git a/src/main.ts b/src/main.ts index 4fc179c..c7d889b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1556,9 +1556,15 @@ export default class GitHubContributionsPlugin extends Plugin { async activateView() { const existing = this.app.workspace.getLeavesOfType(VIEW_TYPE); - if (existing.length > 0) { this.app.workspace.revealLeaf(existing[0]); return; } + if (existing.length > 0) { + void this.app.workspace.revealLeaf(existing[0]); + return; + } const leaf = this.app.workspace.getRightLeaf(false); - if (leaf) { await leaf.setViewState({ type: VIEW_TYPE, active: true }); this.app.workspace.revealLeaf(leaf); } + if (leaf) { + await leaf.setViewState({ type: VIEW_TYPE, active: true }); + void this.app.workspace.revealLeaf(leaf); + } } async loadSettings() { diff --git a/versions.json b/versions.json index 0305806..c0c9f47 100644 --- a/versions.json +++ b/versions.json @@ -3,5 +3,6 @@ "1.0.1": "0.15.0", "1.0.2": "0.15.0", "1.0.3": "1.0.0", - "1.0.4": "1.0.0" + "1.0.4": "1.0.0", + "1.0.5": "1.0.0" } \ No newline at end of file