restart
This commit is contained in:
parent
951dfcdcb8
commit
6f7896cffc
3
app.js
3
app.js
@ -556,7 +556,6 @@ window.changeKey = function(input) {
|
||||
class Stats {
|
||||
constructor() {
|
||||
this.modal = new bootstrap.Modal('#statsModal')
|
||||
restartButton.onclick = restart
|
||||
this.load()
|
||||
}
|
||||
|
||||
@ -912,7 +911,7 @@ let stats = new Stats()
|
||||
let playing = false
|
||||
//let favicon = document.querySelector("link[rel~='icon']")
|
||||
|
||||
function restart() {
|
||||
window.restart = function() {
|
||||
stats.modal.hide()
|
||||
stats.init()
|
||||
settings.init()
|
||||
|
@ -145,7 +145,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user