Skip to content

Commit

Permalink
Merge pull request #213 from fleizean/spa
Browse files Browse the repository at this point in the history
error solved
  • Loading branch information
fleizean committed Apr 16, 2024
2 parents fae5c64 + 3759c73 commit e4eef59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions indianpong/static/js/sockRps.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ function showToast(content, status, iconClass) {
const wsEndpoint = 'wss://' + window.location.host + '/ws/rps/';
const websocket = new WebSocket(wsEndpoint);

const cookie = document.cookie.split('; ').find(row => row.startsWith('selectedLanguage='));
const selectedLanguage = cookie ? cookie.split('=')[1] : 'en';

const checkbox = document.getElementById('flexSwitchCheckDefault');
const selectedGameModeLabel = document.getElementById('selectedGameMode');
Expand Down

0 comments on commit e4eef59

Please sign in to comment.