- update deploy script
- random +x stuff because I switched directories - change heart stones to use inline svgs
This commit is contained in:
parent
cacc530f35
commit
79ae2c5d2b
28 changed files with 41 additions and 45 deletions
0
public/scripts/copy-game-link.js
Normal file → Executable file
0
public/scripts/copy-game-link.js
Normal file → Executable file
0
public/scripts/handle-redirects.js
Normal file → Executable file
0
public/scripts/handle-redirects.js
Normal file → Executable file
8
public/scripts/display-ws-connection.js → public/scripts/make-ws-connection.js
Normal file → Executable file
8
public/scripts/display-ws-connection.js → public/scripts/make-ws-connection.js
Normal file → Executable 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
0
public/scripts/profile-editor.js
Normal file → Executable file
0
public/scripts/send-ws-messages.js
Normal file → Executable file
0
public/scripts/send-ws-messages.js
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue