Popup openWebSite
Add possibility to open a website with a popup 3 cases : Open page GoTo Page OpenCoWebsite
This commit is contained in:
parent
7140637807
commit
8764fe5de5
10 changed files with 282 additions and 544 deletions
25
front/src/Api/ScriptUtils.ts
Normal file
25
front/src/Api/ScriptUtils.ts
Normal 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();
|
Loading…
Add table
Add a link
Reference in a new issue