This commit is contained in:
Adrien MALINGREY 2023-06-12 14:08:28 +02:00
parent 951dfcdcb8
commit 6f7896cffc
2 changed files with 2 additions and 3 deletions

3
app.js
View File

@ -556,7 +556,6 @@ window.changeKey = function(input) {
class Stats { class Stats {
constructor() { constructor() {
this.modal = new bootstrap.Modal('#statsModal') this.modal = new bootstrap.Modal('#statsModal')
restartButton.onclick = restart
this.load() this.load()
} }
@ -912,7 +911,7 @@ let stats = new Stats()
let playing = false let playing = false
//let favicon = document.querySelector("link[rel~='icon']") //let favicon = document.querySelector("link[rel~='icon']")
function restart() { window.restart = function() {
stats.modal.hide() stats.modal.hide()
stats.init() stats.init()
settings.init() settings.init()

View File

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