}
}
function waitForEl(selector, callback, maxtries = false, interval = 100) { const poller var poller1 = setInterval(function() => { const el $jObject = jQuery(selector); const retry = maxtries === false || maxtries-- > 0 if (retry && el$jObject.length < 1) { return // will try again; } clearInterval(pollerpoller1); callback(el || null$jObject) }, interval100);
}