mirror of
https://gitlab.com/jusax23/ilmk.git
synced 2024-11-21 22:26:41 +01:00
change
This commit is contained in:
parent
50d63a86df
commit
f9ad937c56
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue