
          document.getElementById("note").value = data.note;
      }
    </script>

    <!-- for debugging -->
    <script>
      var urlPrefix = "";
      // for local debugging case
      window.addEventListener("DOMContentLoaded", () => {
        const installButton = document.getElementById("install-button");
        if (
          window.location.hostname === "localhost" ||
          window.location.hostname === "127.0.0.1"
        ) {
          urlPrefix = "http://192.168.10.52";
        }
      });
