fix trailing 'state' on line 58

I don't know how it got there
This commit is contained in:
jubiman 2024-09-09 23:03:42 +02:00
parent 8f286e1fbe
commit 0277b171e0

View file

@ -55,7 +55,7 @@ window.addEventListener('paste', ({ clipboardData }) => {
clipboardData.items[0].getAsString(text => {
if (text.includes("access_token=")) { // is an AniList token
let token = text.split('access_token=')?.[1]?.split('&token_type')?.[0]
if (token) {state
if (token) {
if (token.endsWith('/')) token = token.slice(0, -1)
handleToken(token)
}