From 3fd9f3bb3fa007455e7de19690bf3e854f287388 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Sun, 18 Dec 2022 16:56:02 -0800 Subject: [PATCH] remove console --- scripts/elements.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/elements.js b/scripts/elements.js index cf03703..703c1a4 100644 --- a/scripts/elements.js +++ b/scripts/elements.js @@ -64,10 +64,7 @@ class Instance extends HTMLElement { powerButton.src = data.status === "running" ? "images/actions/stop.svg" : "images/actions/start.svg"; powerButton.alt = data.status === "running" ? "shutdown instance" : "start instance"; powerButton.addEventListener("click", async () => { - if (this.actionLock) { - console.log("already doing an action"); - } - else { + if (!this.actionLock) { this.actionLock = true; let targetAction = this.status === "running" ? "shutdown" : "start"; let targetStatus = this.status === "running" ? "stopped" : "running";