Skip to content

Commit

Permalink
Update {{AvailableInWorkers}} macros usage of Content Index API (mdn#…
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 committed Apr 12, 2024
1 parent 787e6d8 commit ca537bc
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/content_index_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ status:
browser-compat: api.ContentIndex
---

{{DefaultAPISidebar("Content Index API")}}{{SeeCompatTable}}
{{DefaultAPISidebar("Content Index API")}}{{SeeCompatTable}}{{AvailableInWorkers}}

The **Content Index API** allows developers to register their offline enabled content with the browser.

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

{{APIRef("Content Index API")}}{{SeeCompatTable}}
{{APIRef("Content Index API")}}{{SeeCompatTable}}{{AvailableInWorkers}}

The **`add()`** method of the
{{domxref("ContentIndex")}} interface registers an item with the [content index](/en-US/docs/Web/API/Content_Index_API).
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/contentindex/delete/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ status:
browser-compat: api.ContentIndex.delete
---

{{APIRef("Content Index API")}}{{SeeCompatTable}}
{{APIRef("Content Index API")}}{{SeeCompatTable}}{{AvailableInWorkers}}

The **`delete()`** method of the
{{domxref("ContentIndex")}} interface unregisters an item from the currently indexed
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/contentindex/getall/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ status:
browser-compat: api.ContentIndex.getAll
---

{{APIRef("Content Index API")}}{{SeeCompatTable}}
{{APIRef("Content Index API")}}{{SeeCompatTable}}{{AvailableInWorkers}}

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

{{APIRef("Content Index API")}}{{SeeCompatTable}}
{{APIRef("Content Index API")}}{{SeeCompatTable}}{{AvailableInWorkers}}

The **`ContentIndex`** interface of the [Content Index API](/en-US/docs/Web/API/Content_Index_API) allows developers to register their offline enabled content with the browser.

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

{{APIRef("Content Index API")}}{{SeeCompatTable}}
{{APIRef("Content Index API")}}{{SeeCompatTable}}{{AvailableInWorkers("service")}}

The **`ContentIndexEvent()`** constructor creates a new {{domxref("ContentIndexEvent")}} object
whose type and other options are configured as specified.
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/contentindexevent/id/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ status:
browser-compat: api.ContentIndexEvent.id
---

{{APIRef("Content Index API")}}{{SeeCompatTable}}
{{APIRef("Content Index API")}}{{SeeCompatTable}}{{AvailableInWorkers("service")}}

The read-only **`id`** property of the
The **`id`** read-only property of the
{{domxref("ContentIndexEvent")}} interface is a {{jsxref('String')}} which identifies
the deleted content index via its `id`.

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

{{APIRef("Content Index API")}}{{SeeCompatTable}}
{{APIRef("Content Index API")}}{{SeeCompatTable}}{{AvailableInWorkers("service")}}

The **`ContentIndexEvent`** interface of the [content index](/en-US/docs/Web/API/Content_Index_API) defines the object used to represent the {{domxref("ServiceWorkerGlobalScope.contentdelete_event", 'contentdelete')}} event.

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

{{APIRef("Content Index API")}}{{SeeCompatTable}}{{SecureContext_Header}}
{{APIRef("Content Index API")}}{{SeeCompatTable}}{{SecureContext_Header}}{{AvailableInWorkers("service")}}

The **`contentdelete`** event of the {{domxref("ServiceWorkerGlobalScope")}} interface is fired when an item is removed from the indexed content via the user agent.

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

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

The **`index`** read-only property of the
{{domxref("ServiceWorkerRegistration")}} interface returns a reference to the
Expand Down

0 comments on commit ca537bc

Please sign in to comment.