From aacb2cb86dd74eaea5a5d6741b37ca01214d6126 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Sat, 17 Dec 2022 16:35:51 -0800 Subject: [PATCH] fix waitFor issue --- scripts/elements.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/elements.js b/scripts/elements.js index 5ad34d2..a9e01ac 100644 --- a/scripts/elements.js +++ b/scripts/elements.js @@ -70,7 +70,7 @@ class Instance extends HTMLElement { if(data.data.status === targetStatus) { break; } - waitFor(1000); + await waitFor(1000); } this.status = targetStatus; let typeImg = this.shadowElement.querySelector("#instance-type");