-
The
navigator.serviceWorker.controllerapproach mentioned below ⤵️ is what I use in the Service Worker Detector extension: github.com/google/service-worker-detector (available for many browsers, including Safari, for which it happens to be a convenient—yet still limited—DevTools replacement). x.com/jeffposnick/status/1386844716239659013