We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 681a676 commit e6a950cCopy full SHA for e6a950c
1 file changed
src/components/OpenWithButton.js
@@ -6,18 +6,15 @@ import ProcessingIcon from '../images/logo-processing.svg';
6
import * as css from './CopyButton.module.css';
7
8
const OpenWithButton = ({ text }) => {
9
- const openWithProcessing = () => {
10
- window.open('pde://sketch/base64/' + btoa(text));
11
- };
12
-
13
return (
14
- <button
+ <a
+ href={`pde://sketch/base64/${btoa(text)}`}
15
type="button"
16
onClick={openWithProcessing}
17
className={classnames(css.root)}
18
>
19
<ProcessingIcon /> {'Open With Processing'}
20
- </button>
+ </a>
21
)
22
}
23
0 commit comments