Output URL param failures in the console

This is always useful for remote debugging.
This commit is contained in:
Tetrakern 2024-05-21 01:54:37 +02:00
parent df05862c9a
commit 196057e1da
3 changed files with 10 additions and 5 deletions

File diff suppressed because one or more lines are too long

8
js/complete.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -653,6 +653,11 @@ function fcn_showNotification(message, duration = 3, type = 'base') {
// Show notices based on URL params (if any)
if (fcn_urlParams) {
// Print errors in console
if (fcn_urlParams['failure']) {
console.error('Failure:', fcn_urlParams['failure']);
}
// Show OAuth 2.0 registration error notice (if any)
if (fcn_urlParams['failure'] === 'oauth_email_taken') {
fcn_showNotification(fictioneer_tl.notification.oauthEmailTaken, 5, 'warning');