mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
please mr linter
This commit is contained in:
parent
2e58ce0d18
commit
24f6d88308
@ -424,13 +424,12 @@ class AppRouter {
|
||||
|
||||
onRequestFail(e, data) {
|
||||
const apiClient = this;
|
||||
|
||||
|
||||
// 401 means the credentials are broken
|
||||
if (data.status === 401) {
|
||||
console.debug('Invalid stored credentials, redirecting to login');
|
||||
appRouter.showLocalLogin(apiClient.serverId());
|
||||
}
|
||||
else if (data.status === 403) {
|
||||
} else if (data.status === 403) {
|
||||
if (data.errorCode === 'ParentalControl') {
|
||||
const isCurrentAllowed = this.currentRouteInfo ? (this.currentRouteInfo.route.anonymous || this.currentRouteInfo.route.startup) : true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user