chore: working with builder xml require vs dynamic import wip

This commit is contained in:
Nathan Walker
2025-07-22 14:37:11 -07:00
parent b4579d1d2f
commit 0ba0ab0d59
23 changed files with 141 additions and 121 deletions

View File

@@ -203,11 +203,13 @@ export function waitUntilNavigatedFrom(action: Function, topFrame?: Frame) {
const currentPage = topFrame ? topFrame.currentPage : Frame.topmost().currentPage;
let completed = false;
function navigatedFrom(args) {
console.log('navigatedFrom called');
args.object.page.off('navigatedFrom', navigatedFrom);
completed = true;
}
currentPage.on('navigatedFrom', navigatedFrom);
console.log('calling action!');
action();
TKUnit.waitUntilReady(() => completed);
}