From 12927fd8a497ce3391c793da70f70d44b5f64fb9 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");