Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
0.8.2
Browse files Browse the repository at this point in the history
- Fixes posting from feed page
  • Loading branch information
iPaulPro committed Nov 2, 2021
1 parent da0d8b3 commit c8932c7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
26 changes: 14 additions & 12 deletions lib/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,19 +212,21 @@ const onPostButtonClick = (postButton) => {

const video = container.querySelector('.feed-post__video-container')?.firstElementChild?.src

let extraData = {}
const extraDataTextArea = document.getElementById(extraDataTextAreaId)
const extraDataTextAreaValue = extraDataTextArea.value
let extraData
if (extraDataTextAreaValue && extraDataTextAreaValue.length > 0) {
try {
extraData = JSON.parse(extraDataTextAreaValue)
} catch (e) {
Swal.fire({
title: 'Error',
text: 'Invalid Extra Text JSON.'
})
restoreButton()
return
if (extraDataTextArea) {
const extraDataTextAreaValue = extraDataTextArea.value
if (extraDataTextAreaValue && extraDataTextAreaValue.length > 0) {
try {
extraData = JSON.parse(extraDataTextAreaValue)
} catch (e) {
Swal.fire({
title: 'Error',
text: 'Invalid Extra Text JSON.'
})
restoreButton()
return
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "BitClout Plus",
"description": "BitClout on steroids",
"version": "0.8.1",
"version": "0.8.2",
"manifest_version": 3,
"content_security_policy": {
"extension_pages": "default-src 'self'; frame-ancestors 'none';"
Expand Down

0 comments on commit c8932c7

Please sign in to comment.