UNPKG

socketpuppet

Version:

🎭 socketpuppet - connect to running puppeteer instances to see what's going on (or going wrong)--and fix it, live!

10 lines (8 loc) • 280 B
const progress = document.currentScript.previousElementSibling; const runner = setInterval(() => { if ( progress.value < progress.max ) { progress.value += 1; } else { clearInterval(runner); } }, 17);