From fbd2d6f35343752e6d7273b35c06280921cc0b95 Mon Sep 17 00:00:00 2001 From: rebornix Date: Mon, 4 Jul 2022 16:31:34 -0700 Subject: [PATCH] fix #3. --- package.json | 2 +- src/App.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 23d842f..59e2cf0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "logseq-open-in-code", - "version": "0.0.4", + "version": "0.0.5", "main": "dist/index.html", "author": "rebornix", "scripts": { diff --git a/src/App.vue b/src/App.vue index b0bc937..b54c152 100644 --- a/src/App.vue +++ b/src/App.vue @@ -25,7 +25,7 @@ function generateUrl(path) { const { distro } = logseq.settings; const protocol = distro === "stable" ? "vscode" : "vscode-insiders"; - return `${protocol}://file/` + path + "?windowId=_blank"; + return `${protocol}://file/` + encodeURIComponent(path) + "?windowId=_blank"; } async function openConfig(name) {