stormcloud-video-player 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -616,6 +616,7 @@ async function getBrowserID(clientInfo) {
616
616
  const fingerprintString = JSON.stringify(clientInfo);
617
617
  if (typeof crypto !== "undefined" && crypto.subtle && crypto.subtle.digest) {
618
618
  try {
619
+ await crypto.subtle.digest("SHA-256", new Uint8Array([1, 2, 3]));
619
620
  const hashBuffer = await crypto.subtle.digest(
620
621
  "SHA-256",
621
622
  new TextEncoder().encode(fingerprintString)
@@ -625,8 +626,7 @@ async function getBrowserID(clientInfo) {
625
626
  return hashHex;
626
627
  } catch (error) {
627
628
  console.warn(
628
- "[StormcloudVideoPlayer] crypto.subtle.digest failed, using fallback hash:",
629
- error
629
+ "[StormcloudVideoPlayer] crypto.subtle.digest not supported, using fallback hash"
630
630
  );
631
631
  }
632
632
  }