HTML export: Await async hook completion before processing results

This commit is contained in:
Richard Hansen 2020-10-06 15:53:14 -04:00 committed by John McLear
parent 661a89355f
commit 45bee54aa0
2 changed files with 23 additions and 22 deletions

View file

@ -206,7 +206,7 @@ PadDiff.prototype.getHtml = async function() {
let authorColors = await this._pad.getAllAuthorColors();
// convert the atext to html
this._html = exportHtml.getHTMLFromAtext(this._pad, atext, authorColors);
this._html = await exportHtml.getHTMLFromAtext(this._pad, atext, authorColors);
return this._html;
}