Merge branch 'develop' of github.com:thecodingmachine/workadventure into iframe-api-refactor

# Conflicts:
#	front/src/iframe_api.ts
This commit is contained in:
David Négrier 2021-06-17 11:23:56 +02:00
commit f6554a1082
134 changed files with 3012 additions and 2255 deletions

View file

@ -1,6 +1,7 @@
import type { GoToPageEvent } from '../Events/GoToPageEvent';
import type { OpenTabEvent } from '../Events/OpenTabEvent';
import { IframeApiContribution, sendToWorkadventure } from './IframeApiContribution';
import {LoadPageEvent} from "../Events/LoadPageEvent";
@ -29,7 +30,16 @@ class WorkadventureNavigationCommands extends IframeApiContribution<Workadventur
} as GoToPageEvent
});
}
goToRoom(url: string): void {
window.parent.postMessage({
"type" : 'loadPage',
"data" : {
url
} as LoadPageEvent
},'*');
}
}
export default new WorkadventureNavigationCommands();
export default new WorkadventureNavigationCommands();