Files
partey_workadventure/front/src/Api/ScriptUtils.ts
T
2021-05-17 14:49:18 +02:00

30 lines
623 B
TypeScript

import {coWebsiteManager} from "../WebRtc/CoWebsiteManager";
// import {discussionManager} from "../WebRtc/DiscussionManager";
class ScriptUtils {
public openTab(url : string){
window.open(url);
}
public goToPage(url : string){
window.location.href = url;
}
public openCoWebsite(url: string, base: string) {
coWebsiteManager.loadCoWebsite(url, base);
}
public closeCoWebSite(){
coWebsiteManager.closeCoWebsite();
}
public closeChatMessage(){
// discussionManager.hideDiscussion();
}
}
export const scriptUtils = new ScriptUtils();