Merge branch 'develop' of github.com:thecodingmachine/workadventure into iframe-api-refactor
# Conflicts: # front/src/iframe_api.ts
This commit is contained in:
commit
f6554a1082
134 changed files with 3012 additions and 2255 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue