constructor()

in packages/sha256-browser/src/crossPlatformSha256.ts [12:20]


  constructor(secret?: SourceData) {
    if (supportsWebCrypto(locateWindow())) {
      this.hash = new WebCryptoSha256(secret);
    } else if (isMsWindow(locateWindow())) {
      this.hash = new Ie11Sha256(secret);
    } else {
      this.hash = new JsSha256(secret);
    }
  }