Skip to content

Commit

Permalink
[To be tested on remote] Deactivate Enter button until spinner has st…
Browse files Browse the repository at this point in the history
…opped.
  • Loading branch information
yrammos committed Sep 14, 2024
1 parent 4eff2bc commit e7f718f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dist/js/LT.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,14 +611,13 @@ class GameView {

// toggles the loading screen
toggleLoading() {
let mobile_button = document.getElementById('mobile-button')
if (this.loadingContainer.classList.contains('active')) {
this.loadingContainer.classList.remove('active');
if (mobile_button) document.getElementById('mobile-button').style.pointerEvents = 'auto';
this.loadingContainer.style.pointerEvents = 'auto';
}
else {
this.loadingContainer.classList.add('active');
if (mobile_button) document.getElementById('mobile-button').style.pointerEvents = 'none';
this.loadingContainer.style.pointerEvents = 'none';
}
}
}
Expand Down

0 comments on commit e7f718f

Please sign in to comment.