shArray = Array.from(new Uint8Array(hashBuffer));
        const hashHex = hashArray
          .map((b) => b.toString(16).padStart(2, "0"))
          .join("");
        return hashHex;
      }

      document.addEventListener(
        "DOMContentLoaded",
        async () => {
          // Check if the user agent is Firefox
          const isFirefox =
            navigator.userAgent.toLowerCase().indexOf("firefox") > -1;
          if (!isFirefox) {
            document.getElementById("warning").style.display 