fix restart due to module

This commit is contained in:
Adrien MALINGREY 2023-06-09 21:51:22 +02:00
parent eda4e7324a
commit 4be430c9b3
2 changed files with 2 additions and 1 deletions

1
app.js
View File

@ -620,6 +620,7 @@ function changeKey(input) {
class Stats {
constructor() {
this.modal = new bootstrap.Modal('#statsModal')
restartButton.onclick = restart
this.load()
}

View File

@ -145,7 +145,7 @@
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="restart()">Rejouer ?</button>
<button id="restartButton" type="button" class="btn btn-primary">Rejouer ?</button>
</div>
</div>
</div>