diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-06-15 22:33:16 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-06-15 22:33:16 -0500 |
commit | de87ec17d1673855fdfe2ccd125d734591969dd4 (patch) | |
tree | cc2380d8fd4bb6c97f034ed460638536c735a144 /src/platform/polyfills.native.ts | |
parent | 172ed1e2cd00ace0ace07f5782daa264f7a2764f (diff) | |
download | voidsky-de87ec17d1673855fdfe2ccd125d734591969dd4.tar.zst |
Fix web build
Diffstat (limited to 'src/platform/polyfills.native.ts')
-rw-r--r-- | src/platform/polyfills.native.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/platform/polyfills.native.ts b/src/platform/polyfills.native.ts index 0c9f30582..dd1ecf7eb 100644 --- a/src/platform/polyfills.native.ts +++ b/src/platform/polyfills.native.ts @@ -1,12 +1,11 @@ -// import {generateSecureRandom} from 'react-native-securerandom' import {NativeModules} from 'react-native' const {AppSecureRandomModule} = NativeModules import {toByteArray} from 'base64-js' +// @ts-ignore we dont have types for this -prf import crypto from 'msrcrypto' import '@zxing/text-encoding' // TextEncoder / TextDecoder async function generateSecureRandom(bytes: number) { - console.log('a') return toByteArray( await AppSecureRandomModule.generateSecureRandomAsBase64(bytes), ) |