FIX: rewrote the way scene exits are triggered
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import {Room} from "../Connexion/Room";
|
||||
|
||||
export enum GameConnexionTypes {
|
||||
anonymous=1,
|
||||
@@ -44,6 +45,15 @@ class UrlManager {
|
||||
history.pushState({}, 'WorkAdventure', newUrl);
|
||||
return newUrl;
|
||||
}
|
||||
|
||||
//todo: is it duplicated with editUrlForRoom() ?
|
||||
public editUrlForCurrentRoom(room: Room): void {
|
||||
let path = room.id;
|
||||
if (room.hash) {
|
||||
path += '#'+room.hash;
|
||||
}
|
||||
history.pushState({}, 'WorkAdventure', path);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user