24 lines
472 B
TypeScript
24 lines
472 B
TypeScript
import {coWebsiteManager} from "../WebRtc/CoWebsiteManager";
|
|
|
|
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();
|
|
}
|
|
}
|
|
|
|
export const scriptUtils = new ScriptUtils();
|