blob: adc0fb41686f09ff29c6a8e499c5eafb31453fe0 (
plain)
1
2
3
4
5
6
7
8
|
if (typeof crypto == 'undefined' && typeof require == 'function') {
globalThis.crypto = require('crypto').webcrypto;
}
function has_webcrypto() {
return (typeof crypto != 'undefined') ? crypto : null;
}
|