This commit is contained in:
jusax23 2021-10-22 22:57:31 +02:00
parent 50d63a86df
commit f9ad937c56

View file

@ -5,10 +5,10 @@ if (typeof process != "undefined") {
crypto = await import('crypto'); crypto = await import('crypto');
if(typeof crypto.webcrypto != "undefined"){ if(typeof crypto.webcrypto != "undefined"){
crypto = crypto.webcrypto; crypto = crypto.webcrypto;
console.log("subtle"); console.log("ilmk: using subtle");
}else{ }else{
node = true; node = true;
console.log("node crypto"); console.log("ilmk: using node crypto");
} }
}else{ }else{
crypto = window.crypto; crypto = window.crypto;