Skip to content

Commit

Permalink
fix #3.
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Jul 4, 2022
1 parent e999493 commit fbd2d6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "logseq-open-in-code",
"version": "0.0.4",
"version": "0.0.5",
"main": "dist/index.html",
"author": "rebornix",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fbd2d6f

Please sign in to comment.