From b0ce7ee2460dd8d6bd2d3a6d3c05fc2c62058492 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 13 Aug 2024 12:17:30 +0200 Subject: [PATCH] docs: deprecate: Request.serviceWorker --- docs/src/api/class-request.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/src/api/class-request.md b/docs/src/api/class-request.md index e13d9de69f..6364ad9033 100644 --- a/docs/src/api/class-request.md +++ b/docs/src/api/class-request.md @@ -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