Skip to content

Commit

Permalink
Auxillary changes to support firefox port
Browse files Browse the repository at this point in the history
  • Loading branch information
prathercc committed Oct 22, 2024
1 parent 55043b6 commit db38303
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "discrub-ext",
"private": true,
"version": "1.12.2",
"version": "1.12.3",
"type": "module",
"scripts": {
"clean_prod_manifest": "cat <<< $(jq 'del(.use_dynamic_url, .web_accessible_resources[].use_dynamic_url)' dist/manifest.json) > dist/manifest.json",
Expand All @@ -19,6 +19,7 @@
"@reduxjs/toolkit": "^2.0.1",
"@transcend-io/conflux": "^4.1.0",
"@types/chrome": "^0.0.256",
"@types/firefox-webext-browser": "^120.0.4",
"bytes": "^3.1.2",
"copy-to-clipboard": "^3.3.3",
"date-fns": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"short_name": "Discrub",
"name": "Discrub",
"version": "1.12.2",
"version": "1.12.3",
"description": "A data manipulation and export tool for Discord.",
"manifest_version": 3,
"permissions": ["storage"],
Expand Down
4 changes: 4 additions & 0 deletions src/changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[
{
"version": "1.12.3",
"changes": ["Auxillary changes for Firefox."]
},
{
"version": "1.12.2",
"changes": [
Expand Down
6 changes: 1 addition & 5 deletions src/components/attachment-mock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,7 @@ const AttachmentMock = ({ attachment }: AttachmentMockProps) => {
controls
playsInline
autoPlay={false}
poster={
mediaMap[attachment.proxy_url]
? undefined
: "resources/media/discrub.png"
}
poster="../discrub_media/discrub.png" // Required to prevent 'react-to-print' from hanging indefinitely in some cases.
/>
)}
{isPreviewingAudio && isAudio && (
Expand Down
2 changes: 1 addition & 1 deletion src/components/embed-mock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const EmbedMock = ({ embed, index }: EmbedMockProps) => {
controls
playsInline
autoPlay={false}
poster={embed.thumbnail?.proxy_url || "resources/media/discrub.png"}
poster="../discrub_media/discrub.png" // Required to prevent 'react-to-print' from hanging indefinitely in some cases.
/>
)}
{isPreviewingVideos &&
Expand Down
2 changes: 1 addition & 1 deletion src/containers/discrub-dialog/discrub-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function DiscrubDialog() {
spacing={1}
>
<Typography color="primary.main" variant="body2">
1.12.2
1.12.3
</Typography>
</Stack>
</Box>
Expand Down

0 comments on commit db38303

Please sign in to comment.