This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

ServiceWorker.scriptURL

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨апрель 2018 г.⁩.

Возвращает URL, указывающий на скрипт данного Service Worker, определённый с помощью ServiceWorkerRegistration. URL должен находиться в том же домене, что и документ, регистрирующий ServiceWorker.