text: const butInstall = document.getElementById('buttonInstall');
  window.addEventListener('beforeinstallprompt', (event) => {
    window.deferredPrompt = event;
    butInstall.classList.toggle('hidden', false);
  });
  butInstall.addEventListener('click', async () => {
    const promptEvent = window.deferredPrompt;
    if (!promptEvent) {
      return;
    }
    promptEvent.prompt();
    window.deferredPrompt = null;
    butInstall.classList.toggle('hidden', true);
  });
  window.addEventListener('appinstalled', (event) => {
    window.deferredPrompt = null;
  });
  
  // Logic for installing the PWA
  // TODO: Add an event handler to the `beforeinstallprompt` event
  window.addEventListener('beforeinstallprompt', (event) => {});
  
  // TODO: Implement a click event handler on the `butInstall` element
  butInstall.addEventListener('click', async () => {});
  
  // TODO: Add an handler for the `appinstalled` event
  window.addEventListener('appinstalled', (event) => {});
  