Skip to content

Commit 57d8319

Browse files
committed
Replace http pdf links with https ones
1 parent c5d0c14 commit 57d8319

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "paper_importer",
33
"name": "Paper Importer",
4-
"version": "1.0.5",
4+
"version": "1.0.6",
55
"minAppVersion": "1.7.6",
66
"description": "Import papers from arXiv with one click.",
77
"author": "Zhe Chen",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian_paper_importer",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "A plugin to help you import papers from arXiv",
55
"main": "main.js",
66
"scripts": {

src/arxiv.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ export async function searchPaper(arxivId: string): Promise<Paper> {
5454
entry
5555
.querySelector("link[title='pdf']")
5656
?.getAttribute("href")
57-
?.trim() || "";
57+
?.trim()
58+
?.replace(/^http:\/\//i, "https://") || "";
5859

5960
return {
6061
paperId,

0 commit comments

Comments
 (0)