From bd0951dbf2637322a87a6bf40d941359dfa5ebc7 Mon Sep 17 00:00:00 2001 From: Postcount CI Date: Wed, 10 Jan 2024 16:27:57 +0700 Subject: [PATCH] fix: center now alway create new tab --- manifest.json | 2 +- package.json | 2 +- src/fns/openView.ts | 2 +- versions.json | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 267d30b..b864847 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "open-gate", "name": "Open Gate", - "version": "1.10.6", + "version": "1.10.7", "minAppVersion": "0.15.0", "description": "Embed any website to Obsidian, you have anything you need in one place. You can browse website and take notes at the same time. e.g. Ask ChatGPT and copy the answer directly to your note.", "author": "duocnv", diff --git a/package.json b/package.json index 88f6168..7180ffe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-open-gate", - "version": "1.10.6", + "version": "1.10.7", "description": "Embedding any website to Obsidian, from now all, you have anything you need in one place.", "main": "main.js", "scripts": { diff --git a/src/fns/openView.ts b/src/fns/openView.ts index 40bf3f1..eeeb266 100644 --- a/src/fns/openView.ts +++ b/src/fns/openView.ts @@ -26,7 +26,7 @@ const createView = async (workspace: Workspace, id: string, position?: GateFrame leaf = workspace.getLeftLeaf(false) break case 'center': - leaf = workspace.getLeaf(false) + leaf = workspace.getLeaf(true) break case 'right': default: diff --git a/versions.json b/versions.json index a0c08b0..0944240 100644 --- a/versions.json +++ b/versions.json @@ -51,5 +51,6 @@ "1.10.3": "0.15.0", "1.10.4": "0.15.0", "1.10.5": "0.15.0", - "1.10.6": "0.15.0" + "1.10.6": "0.15.0", + "1.10.7": "0.15.0" } \ No newline at end of file