We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c254e03 commit c73deb1Copy full SHA for c73deb1
src/components/PixelGIF/index.tsx
@@ -3,19 +3,18 @@ import type { RefCallback } from 'jsx-dom-runtime';
3
import s from './styles.css';
4
import { connect } from '../../store';
5
6
-const url = new URL('https://shoonia.github.io/pixel-gif/');
+const url = 'https://shoonia.github.io/pixel-gif/#';
7
8
export const PixelGIF: JSX.FC = () => {
9
const ready: RefCallback<HTMLAnchorElement> = (a) =>
10
connect('hex', (state) => {
11
- url.hash = state.hex.slice(0, 6);
12
- a.href = url.href;
+ a.href = url + state.hex.slice(0, 6);
13
});
14
15
return (
16
<a
17
ref={ready}
18
- href={url.href}
+ href={url}
19
class={s.link}
20
aria-label="One pixel Base64 encoded GIF generator"
21
>
0 commit comments