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-03-28 16:36:02 +02:00
|
|
|
public openCoWebsite(url : string){
|
|
|
|
coWebsiteManager.loadCoWebsite(url,url);
|
|
|
|
}
|
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();
|