text: (function () {
      'use strict';
  
      if (!('serviceWorker' in navigator)) {
          console.log('Service worker non supporté');
          return;
      }
  
      navigator.serviceWorker.register('../sw.js')
          .then(() => {
              console.log('Enregistrement OK');
          })
          .catch(error => {
              console.log('Enregistrement KO :', error);
          });
  })();