Skip to content

Commit

Permalink
fix: share image display error
Browse files Browse the repository at this point in the history
  • Loading branch information
kuusei committed Jul 19, 2024
1 parent 8c85b52 commit 9cd1dc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/components/ShareMemoDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const ShareMemoDialog: React.FC<Props> = (props: Props) => {
</span>
</div>
</div>
<span className="text-gray-500 dark:text-gray-400">via {window.location.origin}</span>
<span className="text-gray-500 text-end max-sm:text-sm dark:text-gray-400">via {window.location.origin}</span>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/src/utils/html2image/convertResourceToDataURL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const convertResourceToDataURL = async (url: string, useCache = true): Promise<s
return Promise.resolve(cachedResourceMap.get(url) as string);
}

const res = await fetch(url, { mode: "no-cors" });
const res = await fetch(url);
const blob = await res.blob();

return new Promise((resolve) => {
Expand Down

0 comments on commit 9cd1dc7

Please sign in to comment.