Skip to content

Commit

Permalink
fix(docs): fix unpkg CDN link structure (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
wKovacs64 authored Dec 4, 2020
1 parent 8e1668b commit 3850e71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ You have several options for using this library in a browser environment:

```html
<script type="module">
import { dataClasses } from 'https://unpkg.com/hibp/dist/browser/[email protected]';
// Replace x.y.z with the desired hibp version ↓ ↓ ↓
import { dataClasses } from 'https://unpkg.com/[email protected]/dist/browser/hibp.esm.min.js';
const logDataClasses = async () => {
console.table(await dataClasses());
Expand Down
3 changes: 2 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ You have several options for using this library in a browser environment:

```html
<script type="module">
import { dataClasses } from 'https://unpkg.com/hibp/dist/browser/[email protected]';
// Replace x.y.z with the desired hibp version ↓ ↓ ↓
import { dataClasses } from 'https://unpkg.com/[email protected]/dist/browser/hibp.esm.min.js';
const logDataClasses = async () => {
console.table(await dataClasses());
Expand Down

0 comments on commit 3850e71

Please sign in to comment.