Skip to content

Commit 6305041

Browse files
committed
docs: update README
1 parent f361cbd commit 6305041

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@ end
4040
mix generate.vapid.keys
4141
```
4242

43-
3. Set environment variables for your generated keys:
43+
3. Set config for your generated keys:
4444

45-
```yaml
46-
environment:
47-
- VAPID_PUBLIC_KEY=someVapidPublicKey
48-
- VAPID_PRIVATE_KEY=someVapidPrivateKey
49-
- VAPID_SUBJECT=mailto:[email protected]
45+
```elixir
46+
config :web_push_elixir,
47+
vapid_public_key: "someVapidPublicKey",
48+
vapid_private_key: "someVapidPrivateKey",
49+
vapid_subject: "mailto:[email protected]"
5050
```
5151

5252
## Usage
5353

54-
`WebPushElixir` provides a simple `send_notification/2` function that accepts 2 arguments:
54+
`WebPushElixir` provides a simple `send_notification/2` that takes 2 arguments:
5555

5656
* `subscription`: the subscription information received from the client - [example demo](https://midarrlabs.github.io/web-push-elixir/)
5757
* `message`: the message string.

0 commit comments

Comments
 (0)