From 5231825ae32b35a30847e7ed307e223da8ecd17a Mon Sep 17 00:00:00 2001 From: Evgenii Zakharov Date: Mon, 19 Aug 2024 22:23:48 +0500 Subject: [PATCH] Fix typo (#92) --- apps/website/docs/web-api/page_visibility.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/website/docs/web-api/page_visibility.md b/apps/website/docs/web-api/page_visibility.md index 51dea684..ddab5f5b 100644 --- a/apps/website/docs/web-api/page_visibility.md +++ b/apps/website/docs/web-api/page_visibility.md @@ -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.