Skip to content

Commit

Permalink
release: 0.38.3-beta2
Browse files Browse the repository at this point in the history
  • Loading branch information
RyotaUshio committed Mar 17, 2024
1 parent ab9bf14 commit b8850c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest-beta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "pdf-plus",
"name": "PDF++",
"version": "0.38.3-beta1",
"version": "0.38.3-beta2",
"minAppVersion": "1.4.16",
"description": "The most Obsidian-native PDF annotation tool ever.",
"author": "Ryota Ushio",
Expand Down
5 changes: 4 additions & 1 deletion src/modals/external-pdf-modals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ export class ExternalPDFModal extends PDFPlusModal {
]
});
if (paths && paths.length > 0) {
this.urls = paths.map((path) => 'file://' + path.replace(/\\/g, '/'));
this.urls = paths.map((path) => {
path = path.replace(/\\/g, '/').replace(/ /g, '%20');
return 'file://' + (path.startsWith('/') ? '' : '/') + path;
});
this.display();
}
});
Expand Down

0 comments on commit b8850c3

Please sign in to comment.