Something went wrong. Try again.
[Read-only GitHub mirror] docs.pvzm.net
Something went wrong. Try again.
icon: function #
getDAll #
Returns the #dAll container, waiting for it if needed.
Signature #
getDAll({ timeoutMs = 5000 } = {}) => Promise<HTMLElement>
Parameters #
timeoutMs
Max wait time for#dAll.
Default is5000.
Behavior #
- Returns immediately if
#dAllalready exists. - Waits for
DOMContentLoadedif the DOM is still loading. - Observes DOM mutations for late insertion of
#dAll.
Errors #
Rejects if #dAll never appears within timeoutMs. The thrown error message mentions LoadMenu.
Example #
const dAll = await getDAll({ timeoutMs: 10_000 });
dAll.appendChild(document.createTextNode("ready"));