Skip to content

Commit

Permalink
removed sentences
Browse files Browse the repository at this point in the history
  • Loading branch information
A-KGeorge committed Nov 29, 2024
1 parent 85191e5 commit 346887e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference/react-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ For example, the web push service worker is placed at `public/service` folder an

### webPushOptInMessage

The `webPushOptInMessage` controls whether the browser automatically prompts users for notification permissions (true or 'AUTOMATIC') or suppresses the prompt (false). It is set to `"AUTOMATIC"` by default.
The `webPushOptInMessage` controls whether the browser automatically prompts users for notification permissions (`true` or `'AUTOMATIC'`) or suppresses the prompt (`false`). It is set to `"AUTOMATIC"` by default.

```jsx
<App>
Expand Down Expand Up @@ -561,7 +561,7 @@ notificiationapi.setWebPushOptIn(true);
## setWebPushOptInMessage
The `setWebPushOptInMessage` controls whether the browser automatically prompts users for notification permissions (true or 'AUTOMATIC') or suppresses the prompt (false). It can be set to either 'AUTOMATIC' or a boolean value. It is set to `"AUTOMATIC"` by default. It is an alternative to `webPushOptInMessage` inside the `<NotificationAPIProvider />` component.
The `setWebPushOptInMessage` controls whether the browser automatically prompts users for notification permissions (`true` or `'AUTOMATIC'`) or suppresses the prompt (`false`). It is set to `"AUTOMATIC"` by default. It is an alternative to `webPushOptInMessage` inside the `<NotificationAPIProvider />` component.
```javascript
notificationapi.setWebPushOptInMessage('AUTOMATIC');
Expand Down

0 comments on commit 346887e

Please sign in to comment.