Skip to content

Commit

Permalink
makefile/compiled javascript corrupted because missing newline
Browse files Browse the repository at this point in the history
Add options for top and left of the login window
  • Loading branch information
sugarhqi authored and h3adache committed Sep 15, 2020
1 parent a5676a1 commit 6133413
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ everything set up correctly and that you are able to listen for events.
forceWindow: true, // optional, default FALSE
height: 600, // optional
width: 400, // optional
top: 0, // optional, centered by default
left: 0 // optional, centered by default
},
region: "eu-central-1", // REQUIRED for `CHAT`, optional otherwise
softphone: { // optional
Expand Down Expand Up @@ -181,6 +183,12 @@ and made available to your JS client code.
* `width`: Optional, only valid when `forceWindow` is set to `true`. This
allows you to define the width of the login pop-up window if you do not
like the default.
* `top`: Optional, only valid when `forceWindow` is set to `true`. This
allows you to define the top of the login pop-up window if you do not
like the default.
* `left`: Optional, only valid when `forceWindow` is set to `true`. This
allows you to define the left of the login pop-up window if you do not
like the default.
* `loginUrl`: Optional. Allows custom URL to be used to initiate the ccp, as in
the case of SAML authentication.
* `softphone`: This object is optional and allows you to specify some settings
Expand Down
8 changes: 8 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@ declare namespace connect {
* The width of the login prompt window.
*/
width?: number,
/*
* The top of the login prompt window.
*/
top?: number,
/*
* The left of the login prompt window.
*/
left?: number
}

interface InitCCPOptions {
Expand Down
Loading

0 comments on commit 6133413

Please sign in to comment.