From 077999de57c285706594c672476598682aeef2f8 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Sat, 5 Sep 2020 17:30:41 -0600 Subject: [PATCH] Fix restart --- js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 090d746..5d4c71e 100644 --- a/js/main.js +++ b/js/main.js @@ -980,7 +980,7 @@ class Player extends PrimaryView { }); this.restart_button = this.root.querySelector('.controls .control-restart'); this.restart_button.addEventListener('click', ev => { - new ConfirmOverlay(this, "Abandon this attempt and try again?", () => { + new ConfirmOverlay(this.conductor, "Abandon this attempt and try again?", () => { this.restart_level(); }).open(); ev.target.blur(); @@ -1004,7 +1004,7 @@ class Player extends PrimaryView { // Demo playback this.root.querySelector('.demo-controls .demo-play').addEventListener('click', ev => { if (this.state === 'playing' || this.state === 'paused' || this.state === 'rewinding') { - new ConfirmOverlay(this, "Abandon your progress and watch the replay?", () => { + new ConfirmOverlay(this.conductor, "Abandon your progress and watch the replay?", () => { this.play_demo(); }); }