mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-20 10:52:09 +00:00
fix AL logout
This commit is contained in:
parent
be3cffa53f
commit
4650ea99da
2 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Miru",
|
||||
"version": "0.6.0",
|
||||
"version": "0.6.1",
|
||||
"author": "ThaUnknown_",
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
const searchParams = new URLSearchParams(location.href)
|
||||
if (searchParams.get('access_token')) {
|
||||
localStorage.setItem('ALtoken', searchParams.get('access_token'))
|
||||
location.hash = ''
|
||||
}
|
||||
export const alToken = localStorage.getItem('ALtoken') || null
|
||||
const defaults = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue