Skip to content

Commit c73deb1

Browse files
committed
Use string
1 parent c254e03 commit c73deb1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/components/PixelGIF/index.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,18 @@ import type { RefCallback } from 'jsx-dom-runtime';
33
import s from './styles.css';
44
import { connect } from '../../store';
55

6-
const url = new URL('https://shoonia.github.io/pixel-gif/');
6+
const url = 'https://shoonia.github.io/pixel-gif/#';
77

88
export const PixelGIF: JSX.FC = () => {
99
const ready: RefCallback<HTMLAnchorElement> = (a) =>
1010
connect('hex', (state) => {
11-
url.hash = state.hex.slice(0, 6);
12-
a.href = url.href;
11+
a.href = url + state.hex.slice(0, 6);
1312
});
1413

1514
return (
1615
<a
1716
ref={ready}
18-
href={url.href}
17+
href={url}
1918
class={s.link}
2019
aria-label="One pixel Base64 encoded GIF generator"
2120
>

0 commit comments

Comments
 (0)