Skip to content

Commit

Permalink
* section_renderer_handler - await added to renders to let the proces…
Browse files Browse the repository at this point in the history
…s end before releasing the section
  • Loading branch information
uriel-online committed Mar 24, 2024
1 parent 92227ce commit f66e1f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7735,13 +7735,13 @@ xover.modernize = async function (targetWindow) {
}
source_document = (source_document && source_document.document || source_document);
if (source_document instanceof Document) {
source_document.render(stylesheets) || null;
await source_document.render(stylesheets) || null;
} else {
let document = xover.sources[stylesheet];
document.render({ target: self });
await document.render({ target: self });
}
} else if (source_document instanceof xover.Store) {
source_document.render(self)
await source_document.render(self)
} else {
let body = source_document.cloneNode(true);
let result = await xover.dom.combine(self, body);
Expand Down

0 comments on commit f66e1f1

Please sign in to comment.