renamed to goToRoom

This commit is contained in:
jonny 2021-06-16 17:16:00 +02:00
parent 7712bd685b
commit c1e202b7b1

View file

@ -21,10 +21,10 @@ interface WorkAdventureApi {
onEnterZone(name: string, callback: () => void): void;
onLeaveZone(name: string, callback: () => void): void;
openPopup(targetObject: string, message: string, buttons: ButtonDescriptor[]): Popup;
openTab(url : string): void;
goToPage(url : string): void;
exitSceneTo(url : string): void;
openCoWebSite(url : string): void;
openTab(url: string): void;
goToPage(url: string): void;
goToRoom(url: string): void;
openCoWebSite(url: string): void;
closeCoWebSite(): void;
disablePlayerControls(): void;
restorePlayerControls(): void;
@ -168,7 +168,7 @@ window.WA = {
}, '*');
},
exitSceneTo(url : string) : void{
goToRoom(url: string): void {
window.parent.postMessage({
"type" : 'loadPage',
"data" : {