From 0548b2bd3d0adad29bc0c40b5646cc3fdba07550 Mon Sep 17 00:00:00 2001 From: Zenkoina <74417249+Zenkoina@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:01:26 +0100 Subject: [PATCH] Fix inaccurate function name --- .../guides/offline_and_background_operation/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/progressive_web_apps/guides/offline_and_background_operation/index.md b/files/en-us/web/progressive_web_apps/guides/offline_and_background_operation/index.md index 93de3efc478d24d..7a39e424cfbc6b3 100644 --- a/files/en-us/web/progressive_web_apps/guides/offline_and_background_operation/index.md +++ b/files/en-us/web/progressive_web_apps/guides/offline_and_background_operation/index.md @@ -362,7 +362,7 @@ When the PWA no longer needs periodic background updates, (for example, because ```js // main.js -async function registerPeriodicSync() { +async function unregisterPeriodicSync() { const swRegistration = await navigator.serviceWorker.ready; swRegistration.periodicSync.unregister("update-news"); }