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

Function waitFrameLoaded

tech-study.js:3639–3645  ·  view source on GitHub ↗
(iframe)

Source from the content-addressed store, hash-verified

3637}
3638// 等待窗口加载
3639function waitFrameLoaded(iframe) {
3640 return new Promise((resolve) => {
3641 iframe.addEventListener('load', () => {
3642 resolve(true);
3643 });
3644 });
3645}
3646/**
3647 * @description 打开新窗口
3648 */

Callers 1

openFrameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected