From 76b488a672377038e9f5ceb644949ef8bfd9b52d Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 25 Sep 2020 19:29:23 +0200 Subject: [PATCH] Bugfix. Promise.resolve is not a constructor --- src/headless/converse-core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/headless/converse-core.js b/src/headless/converse-core.js index 2aa1c395f..718efd3e5 100644 --- a/src/headless/converse-core.js +++ b/src/headless/converse-core.js @@ -929,7 +929,7 @@ export const api = _converse.api = { } } else { _converse.connection.sendIQ(stanza); - promise = new Promise.resolve(); + promise = Promise.resolve(); } api.trigger('send', stanza); return promise;