Skip to content

Commit

Permalink
0.5.14
Browse files Browse the repository at this point in the history
Missing catch
  • Loading branch information
alangrainger committed Oct 12, 2023
1 parent eaeed93 commit b81dd7e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "share-note",
"name": "Share Note",
"version": "0.5.13",
"version": "0.5.14",
"minAppVersion": "0.15.0",
"description": "Instantly share a note, with the full theme and content exactly like you see in Reading View. Data is shared encrypted by default, and only you and the person you send it to have the key.",
"author": "Alan Grainger",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "share-note",
"version": "0.5.13",
"version": "0.5.14",
"description": "Instantly share a note, with the full theme and content exactly like you see in Reading View. Data is shared encrypted by default, and only you and the person you send it to have the key.",
"main": "main.js",
"scripts": {
Expand Down
19 changes: 11 additions & 8 deletions src/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export default class Note {
this.status.setStatus('Processing attachment ' + (count++) + '...')
resolve()
})
.catch(() => resolve())
.catch(resolve)
}))
}
el.removeAttribute('alt')
Expand Down Expand Up @@ -344,6 +344,7 @@ export default class Note {
cssNotice.setMessage(cssNoticeText + `\n\nUploaded ${count++} of ${total} theme files`)
resolve()
})
.catch(resolve)
}))
}
}
Expand Down Expand Up @@ -371,7 +372,7 @@ export default class Note {
cssNotice.setMessage(cssNoticeText + `\n\nUploaded ${count++} of ${total} theme files`)
resolve()
})
.catch(() => resolve())
.catch(resolve)
}))
}
}
Expand All @@ -384,12 +385,14 @@ export default class Note {
await Promise.all(promises)
// Upload the main CSS file
cssNotice.setMessage(cssNoticeText + `\n\nUploaded ${total - 1} of ${total} theme files`)
await this.plugin.api.upload({
filetype: 'css',
hash: await sha1(this.css),
content: this.css,
byteLength: this.css.length
})
try {
await this.plugin.api.upload({
filetype: 'css',
hash: await sha1(this.css),
content: this.css,
byteLength: this.css.length
})
} catch (e) { }
cssNotice.hide()
}

Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"0.5.10": "0.15.0",
"0.5.11": "0.15.0",
"0.5.12": "0.15.0",
"0.5.13": "0.15.0"
"0.5.13": "0.15.0",
"0.5.14": "0.15.0"
}

0 comments on commit b81dd7e

Please sign in to comment.