forked from mirrors/0ad
6ead0d2f92
Pages can replace themselfe by another (continuation) page.
14 lines
239 B
JavaScript
14 lines
239 B
JavaScript
async function init()
|
|
{
|
|
const result = await Engine.OpenChildPage("OpenRequest/Entry/Page.xml");
|
|
|
|
await new Promise(closePageCallback =>
|
|
{
|
|
globalThis.closePageCallback = () =>
|
|
{
|
|
closePageCallback();
|
|
return result;
|
|
};
|
|
});
|
|
}
|