Skip to content

Commit

Permalink
doc: add note about css variables to migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Dec 22, 2023
1 parent 3fd610a commit a5e68bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/MIGRATION_v3.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# V2 to V3 migration guide

## WebLN global object

window.webln is no longer set by default. If you rely on WebLN being available in the global window object please add the following lines to a place in your application which will be called on every page:

```ts
Expand Down Expand Up @@ -33,6 +34,8 @@ This has been moved to `launchPaymentModal`.

`<bc-modal>` (or `<Modal/>`) no longer needs to be rendered manually. Make sure to remove it so that the modal does not unexpectedly render on the page.

> Make sure to set Bitcoin Connect css variables at the root (e.g. html/body selector) to ensure the modal uses the correct colors.
## Button

Attributes have been moved from the button to the `init` function exposed by the API.
Expand Down

0 comments on commit a5e68bc

Please sign in to comment.