PageSourceSearch

https://epiceriemoderne.com/modules/contrib/pwa/modules/pwa_service_worker/js/serviceworker-load.js?v=11.4.5

js epiceriemoderne.com collected 2026-09-24 22:42:42 UTC 825 bytes, 21 lines download raw bytes

1"use strict";
2
3(function (Drupal, drupalSettings, navigator, window) {
4  'use strict';
5
6  if ('serviceWorker' in navigator) {
7    window.addEventListener('load', function () {
8      let scope = drupalSettings.path.baseUrl;
9      if (typeof drupalSettings.pwa_service_worker.scope !== "undefined" && drupalSettings.pwa_service_worker.scope !== null) {
10        scope = drupalSettings.pwa_service_worker.scope;
11      }
12      navigator.serviceWorker.register(drupalSettings.pwa_service_worker.installPath, {
13        scope: scope
14      }).then(function (registration) {
15        console.log("Service Worker registered! Scope: ".concat(registration.scope));
16      }).catch(function (err) {
17        console.log("Service Worker registration failed: ".concat(err));
18      });
19    });
20  }
21})(Drupal, drupalSettings, navigator, window);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.