Replacing FourOFourScene with more generic ErrorScene
This commit is contained in:
parent
0bbaef0cb5
commit
adca51f6de
6 changed files with 114 additions and 84 deletions
|
@ -25,7 +25,7 @@ export class Room {
|
|||
this.id = this.id.substr(0, indexOfHash);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static getIdFromIdentifier(identifier: string, baseUrl: string, currentInstance: string): {roomId: string, hash: string} {
|
||||
let roomId = '';
|
||||
let hash = '';
|
||||
|
@ -72,8 +72,9 @@ export class Room {
|
|||
console.log('Map ', this.id, ' resolves to URL ', data.mapUrl);
|
||||
resolve(data.mapUrl);
|
||||
return;
|
||||
}).catch((reason) => {
|
||||
reject(reason);
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue