Skip to content

Commit

Permalink
Fix typo (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
risen228 authored Aug 19, 2024
1 parent 4a2b377 commit 5231825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/website/docs/web-api/page_visibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Uses [Page Visibility API](https://developer.mozilla.org/en-US/docs/Web/API/Page

## Usage

All you need to do is to create an integration by calling `trackWindowFocus` with an integration options:
All you need to do is to create an integration by calling `trackPageVisibility` with an integration options:

- `setup`: after this [_Event_](https://effector.dev/en/api/effector/event/) all listeners will be installed, and the integration will be ready to use; it is required because it is better to use [explicit initialization _Event_ in the application](/magazine/explicit_start).
- `teardown?`: after this [_Event_](https://effector.dev/en/api/effector/event/) all listeners will be removed, and the integration will be ready to be destroyed.
Expand Down

0 comments on commit 5231825

Please sign in to comment.