Skip to content

Commit 5b92996

Browse files
committed
fix(README): fix unpkg url
1 parent def4dea commit 5b92996

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Or
1414

1515
Import from [unpkg.com](https://unpkg.com/):
1616

17-
- UMD: https://unpkg.com/service-worker-updatefound-refresh-dialog/service-worker-updatefound-refresh-dialog.umd.js
17+
- UMD: https://unpkg.com/service-worker-updatefound-refresh-dialog/dist/service-worker-updatefound-refresh-dialog.umd.js
1818
- mjs: https://unpkg.com/service-worker-updatefound-refresh-dialog?module
1919

2020
## Usage
@@ -34,7 +34,7 @@ You should inject refresh dialog script to two place.
3434
<title>Example</title>
3535
</head>
3636
<body>
37-
<script src="https://unpkg.com/service-worker-updatefound-refresh-dialog/service-worker-updatefound-refresh-dialog.umd.js"></script>
37+
<script src="https://unpkg.com/service-worker-updatefound-refresh-dialog/dist/service-worker-updatefound-refresh-dialog.umd.js"></script>
3838
<script>
3939
window.addEventListener('load', function() {
4040
navigator.serviceWorker.register('/sw.js')
@@ -51,7 +51,7 @@ You should inject refresh dialog script to two place.
5151

5252
```js
5353
// sw.js
54-
importScripts("https://unpkg.com/service-worker-updatefound-refresh-dialog/service-worker-updatefound-refresh-dialog.umd.js");
54+
importScripts("https://unpkg.com/service-worker-updatefound-refresh-dialog/dist/service-worker-updatefound-refresh-dialog.umd.js");
5555
```
5656

5757
### Options

0 commit comments

Comments
 (0)