Skip to content

Commit

Permalink
Fix typos in web components example (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
tnzk authored Dec 4, 2023
1 parent 41c59c5 commit b93de00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ Use the custom HTML element `cookie-consent-banner`:
<!-- optional, you can also define your own styles, or override the provided ones -->
<link
rel="stylesheet"
src="//cdn.jsdelivr.net/npm/@beyonk/gdpr-cookie-consent-banner/src/lib/banner.css"
href="//cdn.jsdelivr.net/npm/@beyonk/gdpr-cookie-consent-banner/src/lib/banner.css"
/>

<script
type="module"
src="https://cdn.jsdelivr.net/npm/@beyonk/gdpr-cookie-consent-banner/dist/index.js"
></script>

<cookie-consent-banner cookieName="foo" description="bar" />
<cookie-consent-banner cookie-name="foo" description="bar" />
```

### Methods
Expand Down Expand Up @@ -216,7 +216,7 @@ For convenience when using Web Components - and to work around race conditions w
#### HTML / Web Components

```html
<cookie-consent-banner cookieName="foo" description="bar" />
<cookie-consent-banner cookie-name="foo" description="bar" />

<script>
document.getElementsByTagName('cookie-consent-banner')[0].addEventListener('analytics', () => {
Expand Down

0 comments on commit b93de00

Please sign in to comment.