renamed api method "exitSceneTo"

This commit is contained in:
jonny 2021-04-29 10:56:56 +02:00
parent 99926a89b2
commit 99bd9d88d9
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ interface WorkAdventureApi {
openPopup(targetObject: string, message: string, buttons: ButtonDescriptor[]): Popup;
openTab(url : string): void;
goToPage(url : string): void;
loadPage(url : string): void;
exitSceneTo(url : string): void;
openCoWebSite(url : string): void;
closeCoWebSite(): void;
disablePlayerControl() : void;
@ -124,7 +124,7 @@ window.WA = {
},'*');
},
loadPage(url : string) : void{
exitSceneTo(url : string) : void{
window.parent.postMessage({
"type" : 'loadPage',
"data" : {

View File

@ -39,7 +39,7 @@ WA.onEnterZone(zoneName, () => {
label: "load grouped map",
className: "popUpElement",
callback: (popup => {
WA.loadPage(urlRelativeMap);
WA.exitSceneTo(urlRelativeMap);
popup.close();
})