Skip to content

Commit d16906e

Browse files
authored
Merge pull request #179 from 0xs34n/bugfix/community
2 parents 6ae5f8b + e6c159f commit d16906e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/utils/encode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const IS_BROWSER = typeof window !== 'undefined';
44
const STRING_ZERO = '0';
55

66
export function arrayBufferToString(array: ArrayBuffer): string {
7-
return String.fromCharCode.apply(null, array as unknown as number[]);
7+
return new Uint8Array(array).reduce((data, byte) => data + String.fromCharCode(byte), '');
88
}
99

1010
export function btoaUniversal(b: ArrayBuffer): string {

www/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const config = {
7373
},
7474
// {to: '/blog', label: 'Blog', position: 'left'},
7575
{
76-
href: 'https://github.com/facebook/docusaurus',
76+
href: 'https://github.com/0xs34n/starknet.js',
7777
label: 'GitHub',
7878
position: 'right',
7979
},

0 commit comments

Comments
 (0)