Skip to content

Commit 9ef8ab7

Browse files
committed
return blob rather than string
1 parent 8ce121f commit 9ef8ab7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/CopyPageButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default function CopyPageButton() {
5353
const clipboardItem = new ClipboardItem({
5454
["text/plain"]: fetch(markdownUrl)
5555
.then((r) => r.text())
56+
.then((t) => new Blob([t], { type: "text/plain" }))
5657
.catch((e) => {
5758
throw new Error(`Received ${e.message} for ${markdownUrl}`);
5859
}),

0 commit comments

Comments
 (0)