Popup openWebSite

Add possibility to open a website with a popup
3 cases :
Open page
GoTo Page
OpenCoWebsite
This commit is contained in:
DESKTOP-FMM8UI0\CLV 2021-03-25 17:12:53 +01:00
parent 7140637807
commit 8764fe5de5
10 changed files with 282 additions and 544 deletions

View file

@ -0,0 +1,25 @@
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){
coWebsiteManager.loadCoWebsite(url,url);
}
public closeCoWebSite(){
coWebsiteManager.closeCoWebsite();
}
}
export const scriptUtils = new ScriptUtils();