2021-03-25 17:12:53 +01:00
|
|
|
import {coWebsiteManager} from "../WebRtc/CoWebsiteManager";
|
|
|
|
|
|
|
|
class ScriptUtils {
|
|
|
|
|
2021-03-28 16:36:02 +02:00
|
|
|
public openTab(url : string){
|
|
|
|
window.open(url);
|
|
|
|
}
|
2021-03-25 17:12:53 +01:00
|
|
|
|
2021-03-28 16:36:02 +02:00
|
|
|
public goToPage(url : string){
|
|
|
|
window.location.href = url;
|
2021-03-25 17:12:53 +01:00
|
|
|
|
2021-03-28 16:36:02 +02:00
|
|
|
}
|
2021-03-25 17:12:53 +01:00
|
|
|
|
2021-05-01 17:43:31 +02:00
|
|
|
public openCoWebsite(url: string, base: string) {
|
2021-05-03 16:11:16 +02:00
|
|
|
coWebsiteManager.loadCoWebsite(url, base);
|
2021-03-28 16:36:02 +02:00
|
|
|
}
|
2021-03-25 17:12:53 +01:00
|
|
|
|
2021-03-28 16:36:02 +02:00
|
|
|
public closeCoWebSite(){
|
|
|
|
coWebsiteManager.closeCoWebsite();
|
|
|
|
}
|
2021-03-25 17:12:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export const scriptUtils = new ScriptUtils();
|