mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
ie11 doesnt support sha512
This commit is contained in:
parent
3b5a03e977
commit
c57d721be4
|
@ -18,8 +18,7 @@ function goto_up2k() {
|
||||||
// usually it's undefined but some chromes throw on invoke
|
// usually it's undefined but some chromes throw on invoke
|
||||||
var up2k = null;
|
var up2k = null;
|
||||||
try {
|
try {
|
||||||
var cf = window.crypto || window.msCrypto;
|
var cf = crypto.subtle || crypto.webkitSubtle;
|
||||||
cf = cf.subtle || cf.webkitSubtle;
|
|
||||||
cf.digest('SHA-512', new Uint8Array(1)).then(
|
cf.digest('SHA-512', new Uint8Array(1)).then(
|
||||||
function (x) { up2k = up2k_init(cf) },
|
function (x) { up2k = up2k_init(cf) },
|
||||||
function (x) { up2k = up2k_init(false) }
|
function (x) { up2k = up2k_init(false) }
|
||||||
|
|
Loading…
Reference in a new issue