@@ -30,7 +30,7 @@ <h2>Game State View<button onclick="window.location.href='index.html'" style="ma
3030 const tableId = urlParams . get ( 'table' ) || 'default' ; // Use 'default' as fallback
3131 let playerName = urlParams . get ( 'player' ) || 'unknown' ; // Use 'unknown' as fallback
3232 function fetchGameState ( ) {
33- fetch ( `https://fuji-llama-971660789205.asia-southeast1.run.app /state?table=${ tableId } &player=${ playerName } ` )
33+ fetch ( `https://fujillama.sypsoft.nz /state?table=${ tableId } &player=${ playerName } ` )
3434 . then ( response => {
3535 if ( ! response . ok ) {
3636 throw new Error ( `HTTP error! status: ${ response . status } ` ) ;
@@ -217,7 +217,7 @@ <h2>Game State View<button onclick="window.location.href='index.html'" style="ma
217217 const card = cardclicked ;
218218
219219
220- fetch ( 'https://fuji-llama-971660789205.asia-southeast1.run.app /move?table=' + tableId + '&player=' + playerName + "&VM=" + cardclicked )
220+ fetch ( 'https://fujillama.sypsoft.nz /move?table=' + tableId + '&player=' + playerName + "&VM=" + cardclicked )
221221 . then ( response => {
222222 if ( ! response . ok ) {
223223 throw new Error ( `HTTP error! status: ${ response . status } ` ) ;
@@ -235,7 +235,7 @@ <h2>Game State View<button onclick="window.location.href='index.html'" style="ma
235235
236236
237237 function moveDraw ( ) {
238- fetch ( 'https://fuji-llama-971660789205.asia-southeast1.run.app /move?table=' + tableId + '&player=' + playerName + "&VM=D" )
238+ fetch ( 'https://fujillama.sypsoft.nz /move?table=' + tableId + '&player=' + playerName + "&VM=D" )
239239 . then ( response => {
240240 if ( ! response . ok ) {
241241 throw new Error ( `HTTP error! status: ${ response . status } ` ) ;
@@ -251,7 +251,7 @@ <h2>Game State View<button onclick="window.location.href='index.html'" style="ma
251251 }
252252
253253 function moveFold ( ) {
254- fetch ( 'https://fuji-llama-971660789205.asia-southeast1.run.app /move?table=' + tableId + '&player=' + playerName + "&VM=F" )
254+ fetch ( 'https://fujillama.sypsoft.nz /move?table=' + tableId + '&player=' + playerName + "&VM=F" )
255255 . then ( response => {
256256 if ( ! response . ok ) {
257257 throw new Error ( `HTTP error! status: ${ response . status } ` ) ;
@@ -267,7 +267,7 @@ <h2>Game State View<button onclick="window.location.href='index.html'" style="ma
267267 }
268268
269269 function startGame ( ) {
270- fetch ( 'https://fuji-llama-971660789205.asia-southeast1.run.app /start?table=' + tableId )
270+ fetch ( 'https://fujillama.sypsoft.nz /start?table=' + tableId )
271271 . then ( response => {
272272 if ( ! response . ok ) {
273273 throw new Error ( `HTTP error! status: ${ response . status } ` ) ;
@@ -309,7 +309,7 @@ <h2>Game State View<button onclick="window.location.href='index.html'" style="ma
309309 // Smooth refresh every second
310310 setInterval ( async ( ) => {
311311 try {
312- const response = await fetch ( `https://fuji-llama-971660789205.asia-southeast1.run.app /state?table=${ tableId } &player=${ playerName } ` ) ;
312+ const response = await fetch ( `https://fujillama.sypsoft.nz /state?table=${ tableId } &player=${ playerName } ` ) ;
313313 if ( ! response . ok ) throw new Error ( `HTTP error! status: ${ response . status } ` ) ;
314314 const data = await response . json ( ) ;
315315
0 commit comments