Improving error handling upon unknown URL

This commit is contained in:
David Négrier 2020-10-12 17:42:37 +02:00
parent 02c193a262
commit 2852f204f5
4 changed files with 32 additions and 12 deletions

View file

@ -16,7 +16,7 @@ class UrlManager {
return GameConnexionTypes.anonymous;
} else if (url.indexOf('@/') > -1) {
return GameConnexionTypes.organization;
} else if(url.indexOf('register/')) {
} else if(url.indexOf('register/') > -1) {
return GameConnexionTypes.register
} else {
return GameConnexionTypes.unknown