Await render call

This commit is contained in:
Oliver-Akins 2025-03-14 16:34:13 -06:00
parent 77abcb11a9
commit 4b75526708

View file

@ -38,7 +38,7 @@ export function GenericAppMixin(HandlebarsApp) {
* top after being re-rendered as normal * top after being re-rendered as normal
*/ */
async render(options = {}, _options = {}) { async render(options = {}, _options = {}) {
super.render(options, _options); await super.render(options, _options);
const instance = foundry.applications.instances.get(this.id); const instance = foundry.applications.instances.get(this.id);
if (instance !== undefined && options.orBringToFront) { if (instance !== undefined && options.orBringToFront) {
instance.bringToFront(); instance.bringToFront();