Skip to content

Commit

Permalink
Merge pull request #221 from fleizean/spa
Browse files Browse the repository at this point in the history
selectLang error fixed
  • Loading branch information
yeaktas authored Apr 17, 2024
2 parents d8a3bd8 + 3f10454 commit abd0a67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions indianpong/static/js/game/play-ai.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ var usernameX = 10;
var usernameY = 20;
var start_time;

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

var score1 = 0;
var score2 = 0;
Expand Down

0 comments on commit abd0a67

Please sign in to comment.