backup
This commit is contained in:
@@ -164,6 +164,10 @@ AniWorld.AnimeSettingsManager = (function () {
|
||||
if (resp.status === 401) {
|
||||
showError('Not authenticated — please log in again.');
|
||||
showErrorState('Authentication required.');
|
||||
// Redirect to login, preserving the intended destination
|
||||
setTimeout(function() {
|
||||
window.location.href = '/login?next=' + encodeURIComponent(window.location.href);
|
||||
}, 1500);
|
||||
return;
|
||||
}
|
||||
if (resp.status === 404) {
|
||||
|
||||
Reference in New Issue
Block a user