ERROR: javascript error: Unexpected identifier



  • hi
    iam new in js
    and my friend give me a code
    so i want to write it in js in openbullet
    but i can't do it
    it's say ERROR: javascript error: Unexpected identifier

    window.t = "<TOKEN>"
    window.localStorage = document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage;
    window.setInterval(() => window.localStorage.token = `"${window.t}"`);
    window.location.reload();
    

    so any help plz


Log in to reply