From 770a63897d52e832eb1d19a72928bf911aef1e11 Mon Sep 17 00:00:00 2001 From: cha0s Date: Thu, 1 Aug 2024 14:32:09 -0500 Subject: [PATCH] fix: promise result --- app/util/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/util/script.js b/app/util/script.js index e17e638..5910fd4 100644 --- a/app/util/script.js +++ b/app/util/script.js @@ -119,7 +119,7 @@ export default class Script { } return; } - if (async) { + if (async || value instanceof Promise) { this.promise = value; value .catch(reject ? reject : () => {})