Small bugfix, security patch

This commit is contained in:
2025-06-25 10:51:16 +02:00
parent b0a1f9a538
commit f0c538126d
6 changed files with 3225 additions and 308 deletions

View File

@@ -125,7 +125,7 @@ class NotificationHandler {
}, 1000 * this.reconnectRetryCount );
}
};
} else if ( res.status === 403 || res.status === 401 || res.status === 404 ) {
} else if ( res.status === 403 || res.status === 401 || res.status === 404 || res.status === 402 ) {
document.dispatchEvent( new Event( 'musicplayer:autherror' ) );
reject( 'ERR_UNAUTHORIZED' );
} else {
@@ -260,4 +260,4 @@ class NotificationHandler {
}
}
export default NotificationHandler;
export default NotificationHandler;

View File

@@ -90,7 +90,7 @@
router.push( '/get' );
}
} );
} else if ( res.status === 404 ) {
} else if ( res.status === 402 ) {
userStore.setSubscriptionStatus( false );
router.push( '/get' );
sessionStorage.setItem( 'getRedirectionReason', 'notOwned' );
@@ -166,4 +166,4 @@
.player-hidden {
display: none;
}
</style>
</style>