Improving error handling upon unknown URL
This commit is contained in:
parent
02c193a262
commit
2852f204f5
4 changed files with 32 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue