docs: deprecate: Request.serviceWorker

This commit is contained in:
Max Schmitt 2024-08-13 12:17:30 +02:00
parent c8cc4f9c8b
commit b0ce7ee246

View file

@ -288,15 +288,10 @@ Returns the matching [Response] object, or `null` if the response was not receiv
## method: Request.serviceWorker
* since: v1.24
* langs: js
* deprecated: This method is deprecated.
- returns: <[null]|[Worker]>
The Service [Worker] that is performing the request.
**Details**
This method is Chromium only. It's safe to call when using other browsers, but it will always be `null`.
Requests originated in a Service Worker do not have a [`method: Request.frame`] available.
This method will always return `null`.
## async method: Request.sizes
* since: v1.15