window.nostr.js 0.4.6 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,7 +6,7 @@ It adds a small floating button on the side of the window that users can use to
6
6
 
7
7
  ## How to use it
8
8
 
9
- Include `<script src="https://unpkg.com/window.nostr.js/dist/window.nostr.js"></script>` in your HTML and proceed to use [`window.nostr`](https://nips.nostr.com/7) normally.
9
+ Include `<script src="https://cdn.jsdelivr.net/npm/window.nostr.js/dist/window.nostr.min.js"></script>` in your HTML and proceed to use [`window.nostr`](https://nips.nostr.com/7) normally.
10
10
 
11
11
  ## Customization
12
12
  The script supports some optional configurations to personalize the design:
@@ -30,7 +30,7 @@ The script supports some optional configurations to personalize the design:
30
30
  // This option permit to disable this default behavior
31
31
  }
32
32
  </script>
33
- <script src="https://unpkg.com/window.nostr.js/dist/window.nostr.js"></script>
33
+ <script src="https://cdn.jsdelivr.net/npm/window.nostr.js/dist/window.nostr.min.js"></script>
34
34
  ```
35
35
 
36
36
  ## Bookmarklet
@@ -38,7 +38,7 @@ The script supports some optional configurations to personalize the design:
38
38
  If a website has opted to not include this, but you like it, you can still use it on the website. Just add this to your browser bookmarks and click on it to load the widget on any website:
39
39
 
40
40
  ```
41
- javascript:void((function(){var%20e=document.createElement('script');e.setAttribute('src','https://unpkg.com/window.nostr.js/dist/window.nostr.js');document.body.appendChild(e)})())
41
+ javascript:void((function(){var%20e=document.createElement('script');e.setAttribute('src','https://cdn.jsdelivr.net/npm/window.nostr.js/dist/window.nostr.min.js');document.body.appendChild(e)})())
42
42
  ```
43
43
 
44
44
  ## Demo videos
@@ -46,4 +46,3 @@ javascript:void((function(){var%20e=document.createElement('script');e.setAttrib
46
46
  https://github.com/fiatjaf/window.nostr.js/assets/1653275/eacb1302-bbfd-4d28-aec2-dbe231f92c53
47
47
 
48
48
  https://github.com/fiatjaf/window.nostr.js/assets/1653275/8c2546f1-439a-4a1b-beb6-af540de37601
49
-
package/dist/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>dev</title>
7
- <script type="module" crossorigin src="/assets/index-DEaj-hUK.js"></script>
7
+ <script type="module" crossorigin src="/assets/index-Bm08AAak.js"></script>
8
8
  </head>
9
9
  <body
10
10
  style="