From 6f7896cffc2160f52ac5891e8a49e097426eedaf Mon Sep 17 00:00:00 2001 From: adrien Date: Mon, 12 Jun 2023 14:08:28 +0200 Subject: [PATCH] restart --- app.js | 3 +-- index.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index bc902cb..97944bc 100644 --- a/app.js +++ b/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() diff --git a/index.html b/index.html index 310adfd..6277426 100644 --- a/index.html +++ b/index.html @@ -145,7 +145,7 @@