- update deploy script

- random +x stuff because I switched directories
- change heart stones to use inline svgs
This commit is contained in:
sepia 2025-07-27 16:58:37 -05:00
parent cacc530f35
commit 79ae2c5d2b
28 changed files with 41 additions and 45 deletions

0
public/scripts/copy-game-link.js Normal file → Executable file
View file

0
public/scripts/handle-redirects.js Normal file → Executable file
View file

View file

@ -8,7 +8,13 @@ const gameId = gameIdMeta.content;
const playerId = playerIdMeta.content;
// Dynamically construct WebSocket URL
const wsUrl = `ws://${window.location.host}/ws?gameId=${gameId}&playerId=${playerId}`;
let wsProtocol;
if (window.location.protocol === 'https:') {
wsProtocol = 'wss';
} else {
wsProtocol = 'ws';
}
const wsUrl = `${wsProtocol}://${window.location.host}/ws?gameId=${gameId}&playerId=${playerId}`;
// Get the game container element
const gameContainer = document.getElementById('ws-container');

0
public/scripts/profile-editor.js Normal file → Executable file
View file

0
public/scripts/send-ws-messages.js Normal file → Executable file
View file