File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 14
14
15
15
Import from [ unpkg.com] ( https://unpkg.com/ ) :
16
16
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
18
18
- mjs: https://unpkg.com/service-worker-updatefound-refresh-dialog?module
19
19
20
20
## Usage
@@ -34,7 +34,7 @@ You should inject refresh dialog script to two place.
34
34
<title >Example</title >
35
35
</head >
36
36
<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 >
38
38
<script >
39
39
window .addEventListener (' load' , function () {
40
40
navigator .serviceWorker .register (' /sw.js' )
@@ -51,7 +51,7 @@ You should inject refresh dialog script to two place.
51
51
52
52
``` js
53
53
// 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" );
55
55
```
56
56
57
57
### Options
You can’t perform that action at this time.
0 commit comments