Merge branch 'develop' of github.com:thecodingmachine/workadventure into iframe-api-refactor
# Conflicts: # front/src/iframe_api.ts
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user