Output URL param failures in the console
This is always useful for remote debugging.
This commit is contained in:
parent
df05862c9a
commit
196057e1da
2
js/application.min.js
vendored
2
js/application.min.js
vendored
File diff suppressed because one or more lines are too long
8
js/complete.min.js
vendored
8
js/complete.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user