Skip to content

Commit

Permalink
added missing await for the async call
Browse files Browse the repository at this point in the history
  • Loading branch information
dmportella committed Nov 17, 2024
1 parent 2f35e07 commit aa76644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dndbeyond/base/dice.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit aa76644

Please sign in to comment.