Skip to content

Commit 2523b31

Browse files
committed
fix: Log response content to console from PicGo.
1 parent 303e723 commit 2523b31

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "logseq-plugin-image-uploader",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"main": "dist/index.html",
55
"scripts": {
66
"dev": "vite",

Diff for: src/ImageUploadUtils.ts

-7
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ async function uploadImage(url: string): Promise<string> {
1818
throw new Error("Upload failed.");
1919
}
2020
})
21-
.then(resJSON => {
22-
if (resJSON.success) {
23-
return resJSON.result[0]
24-
} else {
25-
throw new Error("Upload failed.");
26-
}
27-
})
2821
.catch((error) => {
2922
console.error('Error:', error);
3023
logseq.App.showMsg("Error: " + error.message, "error");

0 commit comments

Comments
 (0)