mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-21 08:31:58 +00:00
fix trailing 'state' on line 58
I don't know how it got there
This commit is contained in:
parent
8f286e1fbe
commit
0277b171e0
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ window.addEventListener('paste', ({ clipboardData }) => {
|
||||||
clipboardData.items[0].getAsString(text => {
|
clipboardData.items[0].getAsString(text => {
|
||||||
if (text.includes("access_token=")) { // is an AniList token
|
if (text.includes("access_token=")) { // is an AniList token
|
||||||
let token = text.split('access_token=')?.[1]?.split('&token_type')?.[0]
|
let token = text.split('access_token=')?.[1]?.split('&token_type')?.[0]
|
||||||
if (token) {state
|
if (token) {
|
||||||
if (token.endsWith('/')) token = token.slice(0, -1)
|
if (token.endsWith('/')) token = token.slice(0, -1)
|
||||||
handleToken(token)
|
handleToken(token)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue