Hey guys I'm creating an Automated script which his job is to put something in the page console with puppeteer i wanna it to write in the page console:
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
and write this too after the first one:
login("Token")