Rename cowebsite API functions
This commit is contained in:
parent
fbff7491df
commit
fb7fe0dc0a
2 changed files with 8 additions and 40 deletions
|
@ -41,22 +41,7 @@ export class WorkadventureNavigationCommands extends IframeApiContribution<Worka
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use openCoWebsite instead
|
||||
*/
|
||||
openCoWebSite(url: string, allowApi?: boolean, allowPolicy?: string) {
|
||||
return queryWorkadventure({
|
||||
type: "openCoWebsite",
|
||||
data: {
|
||||
url,
|
||||
allowApi,
|
||||
allowPolicy,
|
||||
position: undefined,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
async openCoWebsite(url: string, allowApi?: boolean, allowPolicy?: string, position?: number): Promise<CoWebsite> {
|
||||
async openCoWebSite(url: string, allowApi?: boolean, allowPolicy?: string, position?: number): Promise<CoWebsite> {
|
||||
const result = await queryWorkadventure({
|
||||
type: "openCoWebsite",
|
||||
data: {
|
||||
|
@ -69,7 +54,7 @@ export class WorkadventureNavigationCommands extends IframeApiContribution<Worka
|
|||
return new CoWebsite(result.id, result.position);
|
||||
}
|
||||
|
||||
async getCoWebsites(): Promise<CoWebsite[]> {
|
||||
async getCoWebSites(): Promise<CoWebsite[]> {
|
||||
const result = await queryWorkadventure({
|
||||
type: "getCoWebsites",
|
||||
data: undefined
|
||||
|
@ -86,20 +71,6 @@ export class WorkadventureNavigationCommands extends IframeApiContribution<Worka
|
|||
data: undefined,
|
||||
});
|
||||
}
|
||||
|
||||
closeCoWebsite(coWebsiteId: string) {
|
||||
return queryWorkadventure({
|
||||
type: "closeCoWebsite",
|
||||
data: coWebsiteId,
|
||||
});
|
||||
}
|
||||
|
||||
closeCoWebsites() {
|
||||
return queryWorkadventure({
|
||||
type: "closeCoWebsites",
|
||||
data: undefined,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default new WorkadventureNavigationCommands();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue