mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -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
|
||||
var up2k = null;
|
||||
try {
|
||||
var cf = window.crypto || window.msCrypto;
|
||||
cf = cf.subtle || cf.webkitSubtle;
|
||||
var cf = crypto.subtle || crypto.webkitSubtle;
|
||||
cf.digest('SHA-512', new Uint8Array(1)).then(
|
||||
function (x) { up2k = up2k_init(cf) },
|
||||
function (x) { up2k = up2k_init(false) }
|
||||
|
|
Loading…
Reference in a new issue