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

Commit

Permalink
v0.9.2
Browse files Browse the repository at this point in the history
- Hotfix for images.deso.org image support
  • Loading branch information
iPaulPro committed Nov 17, 2021
1 parent 45a409b commit f20f2f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ const onPostButtonClick = (postButton) => {
postButton.appendChild(spinner)

const postImage = container.getElementsByClassName('feed-post__image').item(0)
const hasImage = postImage && postImage.src && postImage.src.includes(`images.${window.location.hostname}`)
const hasImage = postImage && postImage.src &&
(postImage.src.includes(`images.${window.location.hostname}`) || postImage.src.includes(`images.deso.org`))
const image = hasImage ? postImage.src : undefined

const postEmbed = container.querySelector('input[type="url"]')
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.9.1",
"version": "0.9.2",
"manifest_version": 3,
"content_security_policy": {
"extension_pages": "default-src 'self'; frame-ancestors 'none';"
Expand Down

0 comments on commit f20f2f8

Please sign in to comment.