Skip to content

Commit

Permalink
Potentially fixes asciinema player
Browse files Browse the repository at this point in the history
  • Loading branch information
milanholemans committed Dec 14, 2024
1 parent 9e186e5 commit 06b2592
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
3 changes: 0 additions & 3 deletions docs/babel.config.js

This file was deleted.

4 changes: 0 additions & 4 deletions docs/docs/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
---
slug: /
---

import AsciinemaPlayer from '../src/components/AsciinemaPlayer';
import 'asciinema-player/dist/bundle/asciinema-player.css';

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/AsciinemaPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const AsciinemaPlayerComponent: React.FC<AsciinemaPlayerProps> = ({
...asciinemaOptions
}) => {
const ref = useRef<HTMLDivElement>(null);
const proxiedSrc = `https://corsproxy.io/?${encodeURIComponent(src)}`;
const proxiedSrc = `https://corsproxy.io/?url=${encodeURIComponent(src)}`;
const [isMounted, setIsMounted] = useState(false);

useEffect(() => {
Expand Down

0 comments on commit 06b2592

Please sign in to comment.