Skip to content

Commit

Permalink
add cors-implementation
Browse files Browse the repository at this point in the history
it's fixed now i swear
  • Loading branch information
orn8 committed Jun 26, 2024
1 parent 966af08 commit c86ae37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gameX.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@
const content = document.getElementById('content');
content.innerHTML = '';
content.appendChild(player);
player.load(gameUrl);
const encodedUrl = encodeURIComponent(gameUrl);
const corsUrl = `https://cors-anywhere-oragne.vercel.app/api/cors?url=${encodedUrl}`;
player.load(corsUrl);
showPopup();
setTimeout(hidePopup, 2000);
} else {
Expand Down

0 comments on commit c86ae37

Please sign in to comment.