File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ You can use Bitcoin Connect without any build tools:
36
36
37
37
``` html
38
38
<script type =" module" >
39
- import {launchModal } from ' https://esm.sh/@getalby/[email protected] ' ; // jsdelivr.net, skypack.dev also work
39
+ import {launchModal } from ' https://esm.sh/@getalby/bitcoin-connect@^ 3.8.1' ; // jsdelivr.net, skypack.dev also work
40
40
41
41
// use Bitcoin connect API normally...
42
42
launchModal ();
43
43
44
44
// or if you just want access to the web components:
45
- import ' https://esm.sh/@getalby/[email protected] ' ;
45
+ import ' https://esm.sh/@getalby/bitcoin-connect@^ 3.8.1' ;
46
46
</script >
47
47
48
48
<!-- Bitcoin Connect components are now available -->
Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ <h1>Programmatic Access Demo</h1>
65
65
launchPaymentModal ,
66
66
requestProvider ,
67
67
disconnect ,
68
- } from 'https://esm.sh/@getalby/bitcoin-connect@latest ' ;
69
- import { LightningAddress } from 'https://esm.sh/@getalby/lightning-tools@latest ' ;
68
+ } from 'https://esm.sh/@getalby/bitcoin-connect@^3.8.1 ' ;
69
+ import { LightningAddress } from 'https://esm.sh/@getalby/lightning-tools@^5.2.0 ' ;
70
70
71
71
// Initialize Bitcoin Connect with your app name
72
72
init ( { appName : 'Programmatic Access Demo' } ) ;
Original file line number Diff line number Diff line change 5
5
< meta charset ="utf-8 " />
6
6
< title > bc-button Demo</ title >
7
7
< script type ="module ">
8
- import { onConnected } from 'https://esm.sh/@getalby/bitcoin-connect@latest ' ;
8
+ import { onConnected } from 'https://esm.sh/@getalby/bitcoin-connect@^3.8.1 ' ;
9
9
onConnected ( ( provider ) => {
10
10
console . log ( 'Connected with provider' , provider ) ;
11
11
} ) ;
Original file line number Diff line number Diff line change 7
7
8
8
< script type ="module ">
9
9
// Import necessary modules from esm.sh CDN
10
- import { init } from 'https://esm.sh/@getalby/bitcoin-connect@latest ' ;
11
- import { LightningAddress } from 'https://esm.sh/@getalby/lightning-tools@latest ' ;
10
+ import { init } from 'https://esm.sh/@getalby/bitcoin-connect@^3.8.1 ' ;
11
+ import { LightningAddress } from 'https://esm.sh/@getalby/lightning-tools@^5.2.0 ' ;
12
12
13
13
// Initialize Bitcoin Connect with your app name
14
14
// This sets up the connection to Bitcoin wallets
You can’t perform that action at this time.
0 commit comments