Skip to content

Commit

Permalink
Fix logout (#1171)
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Nov 18, 2020
1 parent ab148a0 commit f613e91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion min/custom-navbar-user-info.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/style/custom-navbar/simple/custom-navbar-user-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export class UserInfo extends NavbarComponent {
biliCSRF: getCsrf(),
})
)
const url = _.get(response, 'data.redirectUrl', '')
const url = _.get(JSON.parse(response), 'data.redirectUrl', '')
if (url) {
window.location.assign(url)
}
Expand Down

0 comments on commit f613e91

Please sign in to comment.