MCPcopy Create free account
hub / github.com/Xu22Web/tech-study-js / waitWinClose

Function waitWinClose

tech-study.js:3679–3685  ·  view source on GitHub ↗

* @description 等待窗口关闭 * @param newPage * @returns

(newPage)

Source from the content-addressed store, hash-verified

3677 * @returns
3678 */
3679function waitWinClose(newPage) {
3680 return new Promise((resolve) => {
3681 newPage.onclose = () => {
3682 resolve(undefined);
3683 };
3684 });
3685}
3686/**
3687 * @description 关闭任务窗口
3688 */

Callers 1

waitTaskWinFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected