Skip to content

Commit

Permalink
chore: RELEASE (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
nirgur authored Aug 8, 2023
1 parent bd99402 commit 52be818
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/web-component/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ Usage example:

```javascript
const descopeWcEle = document.getElementsByTagName('descope-wc')[0];
descopeWcEle.addEventListener('error', (e) =>
alert(`Error! - ${e.detail.errorMessage}`)
);
descopeWcEle.addEventListener('error', (e) => alert(`Error! - ${e.detail.errorMessage}`));
```

### `success` - Fired when the flow is completed successfully. The event detail contains the flow result.
Expand All @@ -120,7 +118,5 @@ Usage example:

```javascript
const descopeWcEle = document.getElementsByTagName('descope-wc')[0];
descopeWcEle.addEventListener('success', (e) =>
alert(`Success! - ${JSON.stringify(e.detail)}`)
);
descopeWcEle.addEventListener('success', (e) => alert(`Success! - ${JSON.stringify(e.detail)}`));
```

0 comments on commit 52be818

Please sign in to comment.