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 @@