From aa7664456055a51d5266fff7e6eb0b21cd5c589e Mon Sep 17 00:00:00 2001 From: dmportella Date: Sun, 17 Nov 2024 05:30:27 +0000 Subject: [PATCH] added missing await for the async call --- src/dndbeyond/base/dice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dndbeyond/base/dice.js b/src/dndbeyond/base/dice.js index 5685cd4e..5270ee13 100644 --- a/src/dndbeyond/base/dice.js +++ b/src/dndbeyond/base/dice.js @@ -58,7 +58,7 @@ class DNDBDisplayer { return req; } async sendMessage(request, title, html, character, whisper, play_sound, source, attributes, description, attack_rolls, roll_info, damage_rolls, total_damages, open) { - const req = sendMessageToDOM(request, title, html, character, whisper, play_sound, source, attributes, description, attack_rolls, roll_info, damage_rolls, total_damages, open); + const req = await this.sendMessageToDOM(request, title, html, character, whisper, play_sound, source, attributes, description, attack_rolls, roll_info, damage_rolls, total_damages, open); console.log("Sending message: ", req); chrome.runtime.sendMessage(req, (resp) => beyond20SendMessageFailure(character, resp)); }