From 48391c07233c0e60a2668f0bb161a531012e6578 Mon Sep 17 00:00:00 2001 From: Elijahr2411 Date: Thu, 23 Feb 2023 16:36:55 -0500 Subject: [PATCH] retard proof the restore button --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index fda7f0b..63cdc88 100644 --- a/src/index.js +++ b/src/index.js @@ -801,7 +801,7 @@ buttons.ctrlAltDel.addEventListener('click', () => { voteyesbtn.addEventListener('click', () => vm.voteReset(true)); votenobtn.addEventListener('click', () => vm.voteReset(false)); // Staff buttons -buttons.restore.addEventListener('click', () => vm.admin.restore()); +buttons.restore.addEventListener('click', () => {if (window.confirm("Do you really want to restore the VM?")) vm.admin.restore()}); buttons.reboot.addEventListener('click', () => vm.admin.reboot()); buttons.clearQueue.addEventListener('click', () => vm.admin.clearQueue()); buttons.bypassTurn.addEventListener('click', () => vm.admin.bypassTurn());