Skip to content

Commit 7e49ac0

Browse files
committed
btoa does not exist in Node
1 parent 4368eca commit 7e49ac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/OpenWithButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as css from './CopyButton.module.css';
88
const OpenWithButton = ({ text }) => {
99
return (
1010
<a
11-
href={`pde://sketch/base64/${btoa(text)}`}
11+
href={`pde://sketch/base64/${Buffer.from(text).toString('base64')}`}
1212
type="button"
1313
className={classnames(css.root)}
1414
>

0 commit comments

Comments
 (0)