Skip to content

Commit

Permalink
Update {{AvailableInWorkers}} macros usage for Web Periodic Backgroun…
Browse files Browse the repository at this point in the history
…d Synchronization API (mdn#33093)

* for Web Periodic Background Synchronization API

* for Service Worker

* for `PeriodicSyncManager`

* for `PeriodicSyncEvent`
  • Loading branch information
skyclouds2001 committed Apr 15, 2024
1 parent 8061fb1 commit b74d47a
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/periodicsyncevent/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ status:
browser-compat: api.PeriodicSyncEvent
---

{{APIRef("Periodic Background Sync")}}{{SeeCompatTable}}
{{APIRef("Periodic Background Sync")}}{{SeeCompatTable}}{{AvailableInWorkers("service")}}

The **`PeriodicSyncEvent`** interface of the {{domxref('Web Periodic Background Synchronization API', '', '', 'nocode')}} provides a way to run tasks in the service worker with network connectivity.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ status:
browser-compat: api.PeriodicSyncEvent.PeriodicSyncEvent
---

{{APIRef("Periodic Background Sync")}}{{SeeCompatTable}}
{{APIRef("Periodic Background Sync")}}{{SeeCompatTable}}{{AvailableInWorkers("service")}}

The **`PeriodicSyncEvent()`** constructor
creates a new {{domxref("PeriodicSyncEvent")}} object. This constructor is not typically
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/periodicsyncevent/tag/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ status:
browser-compat: api.PeriodicSyncEvent.tag
---

{{APIRef("Periodic Background Sync")}}{{SeeCompatTable}}
{{APIRef("Periodic Background Sync")}}{{SeeCompatTable}}{{AvailableInWorkers("service")}}

The **`tag`** read-only property of the
{{domxref("PeriodicSyncEvent")}} interface returns the developer-defined identifier for
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/periodicsyncmanager/gettags/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ status:
browser-compat: api.PeriodicSyncManager.getTags
---

{{APIRef("Periodic Background Sync")}}{{SeeCompatTable}}
{{APIRef("Periodic Background Sync")}}{{SeeCompatTable}}{{AvailableInWorkers}}

The **`getTags()`** method of the
{{domxref("PeriodicSyncManager")}} interface returns a {{jsxref('Promise')}} that
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/periodicsyncmanager/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ status:
browser-compat: api.PeriodicSyncManager
---

{{APIRef("Periodic Background Sync")}}{{SeeCompatTable}}
{{APIRef("Periodic Background Sync")}}{{SeeCompatTable}}{{AvailableInWorkers}}

The **`PeriodicSyncManager`** interface of the {{domxref('Web Periodic Background Synchronization API', '', '', 'nocode')}} provides a way to register tasks to be run in a service worker at periodic intervals with network connectivity. These tasks are referred to as periodic background sync requests. Access `PeriodicSyncManager` through the {{domxref('ServiceWorkerRegistration.periodicSync')}}.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/periodicsyncmanager/register/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ status:
browser-compat: api.PeriodicSyncManager.register
---

{{APIRef("Periodic Background Sync")}}{{SeeCompatTable}}
{{APIRef("Periodic Background Sync")}}{{SeeCompatTable}}{{AvailableInWorkers}}

The **`register()`** method of the
{{domxref("PeriodicSyncManager")}} interface registers a periodic sync request with the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ status:
browser-compat: api.PeriodicSyncManager.unregister
---

{{APIRef("Periodic Background Sync")}}{{SeeCompatTable}}
{{APIRef("Periodic Background Sync")}}{{SeeCompatTable}}{{AvailableInWorkers}}

The **`unregister()`** method of the
{{domxref("PeriodicSyncManager")}} interface unregisters the periodic sync request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ status:
browser-compat: api.ServiceWorkerGlobalScope.periodicsync_event
---

{{APIRef("Periodic Background Sync")}}{{SeeCompatTable}}{{SecureContext_Header}}
{{APIRef("Periodic Background Sync")}}{{SeeCompatTable}}{{SecureContext_Header}}{{AvailableInWorkers("service")}}

The **`periodicsync`** event of the {{domxref("ServiceWorkerGlobalScope")}} interface is fired at timed intervals, specified when registering a {{domxref('PeriodicSyncManager')}}.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ status:
browser-compat: api.ServiceWorkerRegistration.periodicSync
---

{{APIRef("Service Workers API")}}{{SeeCompatTable}}{{SecureContext_Header}} {{AvailableInWorkers}}
{{APIRef("Service Workers API")}}{{SeeCompatTable}}{{SecureContext_Header}}{{AvailableInWorkers}}

The **`periodicSync`** read-only property of
the {{domxref("ServiceWorkerRegistration")}} interface returns a reference to the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ browser-compat:
spec-urls: https://wicg.github.io/periodic-background-sync/
---

{{DefaultAPISidebar("Periodic Background Sync")}}{{SecureContext_Header}}{{SeeCompatTable}}
{{DefaultAPISidebar("Periodic Background Sync")}}{{SecureContext_Header}}{{SeeCompatTable}}{{AvailableInWorkers}}

The **Web Periodic Background Synchronization API** provides a way to register tasks to be run in a {{domxref("Service Worker API", "service worker", "", "nocode")}} at periodic intervals with network connectivity. These tasks are referred to as periodic background sync requests.

Expand Down

0 comments on commit b74d47a

Please sign in to comment.