Skip to content

Commit 6374f0e

Browse files
Update comment
Co-authored-by: Maarten Zuidhoorn <[email protected]>
1 parent 94b049b commit 6374f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/snaps-utils/src/base64.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type { VirtualFile } from './virtual-file';
1111
*/
1212
export async function encodeBase64(input: Uint8Array | VirtualFile | string) {
1313
const bytes = getBytes(input);
14-
// In the browser, FileReader is much faster than bytesToBase64.
14+
// In the browser, FileReader is much faster than bytesToBase64. This is not supported in React Native however.
1515
if ('FileReader' in globalThis && navigator?.product !== 'ReactNative') {
1616
return await new Promise((resolve, reject) => {
1717
const reader = Object.assign(new FileReader(), {

0 commit comments

Comments
 (0)