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');
if(typeof crypto.webcrypto != "undefined"){
crypto = crypto.webcrypto;
console.log("subtle");
console.log("ilmk: using subtle");
}else{
node = true;
console.log("node crypto");
console.log("ilmk: using node crypto");
}
}else{
crypto = window.crypto;