We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 303e723 commit 2523b31Copy full SHA for 2523b31
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "logseq-plugin-image-uploader",
3
- "version": "0.0.9",
+ "version": "0.0.10",
4
"main": "dist/index.html",
5
"scripts": {
6
"dev": "vite",
src/ImageUploadUtils.ts
@@ -18,13 +18,6 @@ async function uploadImage(url: string): Promise<string> {
18
throw new Error("Upload failed.");
19
}
20
})
21
- .then(resJSON => {
22
- if (resJSON.success) {
23
- return resJSON.result[0]
24
- } else {
25
- throw new Error("Upload failed.");
26
- }
27
- })
28
.catch((error) => {
29
console.error('Error:', error);
30
logseq.App.showMsg("Error: " + error.message, "error");
0 commit comments