Merge pull request #913 from orus-tech/master

Fix client compilation error in base64()
This commit is contained in:
Ferdi Koomen 2021-12-20 14:00:11 -05:00 committed by GitHub
commit b2faf4f583
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@ function base64(str: string): string {
try {
return btoa(str);
} catch (err) {
// @ts-ignore
return Buffer.from(str).toString('base64');
}
}