Skip to content

Commit 4f3ee28

Browse files
committed
update cdn link
1 parent 4e6c6de commit 4f3ee28

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import HumanReplay from 'human-replay';
3232
### CDN
3333

3434
```html
35-
<script src="https://cdn.jsdelivr.net/npm/human-replay/dist/browser/index.min.js"></script>
35+
<script src="https://cdn.jsdelivr.net/npm/human-replay"></script>
3636
<script>
3737
// window.HumanReplay
3838
</script>
@@ -56,7 +56,7 @@ import HumanReplay from 'human-replay';
5656
<button id="replay">Replay</button>
5757
<button id="reset">Reset</button>
5858

59-
<script src="https://cdn.jsdelivr.net/npm/human-replay/dist/browser/index.min.js"></script>
59+
<script src="https://cdn.jsdelivr.net/npm/human-replay"></script>
6060
<script>
6161
const inputElement = document.getElementById('recordInput');
6262
const outputElement = document.getElementById('replayOutput');

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ <h4 class="font-semibold mb-2">💾 Compressed Data - Use This on Your Website</
195195
<div>
196196
<strong class="text-green-300">🌐 Method 2: CDN (Browser)</strong>
197197
<div class="bg-gray-800/50 p-2 mt-1 rounded font-mono text-gray-200">
198-
<pre class="break-all whitespace-pre-wrap"><code>&lt;script src="https://cdn.jsdelivr.net/npm/human-replay@latest/dist/browser/index.js"&gt;&lt;/script&gt;
198+
<pre class="break-all whitespace-pre-wrap"><code>&lt;script src="https://cdn.jsdelivr.net/npm/human-replay"&gt;&lt;/script&gt;
199199
&lt;script&gt;
200200
// Record from any element on your page
201201
const recorder = new HumanReplay(document.getElementById('any-input'));

0 commit comments

Comments
 (0)