Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
duniter
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
232
Issues
232
List
Boards
Labels
Milestones
Merge Requests
10
Merge Requests
10
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nodes
typescript
duniter
Commits
81005e2e
Commit
81005e2e
authored
Jul 22, 2019
by
Moul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consider Uint8Array as a string type
parent
237f27b0
Pipeline
#6171
failed with stages
in 1 minute and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/lib/common-libs/crypto/nacl-util.ts
app/lib/common-libs/crypto/nacl-util.ts
+1
-1
No files found.
app/lib/common-libs/crypto/nacl-util.ts
View file @
81005e2e
...
...
@@ -28,7 +28,7 @@ export const encodeUTF8 = function(arr:any[]) {
export
const
encodeBase64
=
function
(
arr
:
Uint8Array
)
{
if
(
typeof
btoa
===
'
undefined
'
||
!
window
)
{
return
(
Buffer
.
alloc
(
arr
)).
toString
(
'
base64
'
);
return
(
Buffer
.
from
(
arr
)).
toString
(
'
base64
'
);
}
else
{
let
i
,
s
=
[],
len
=
arr
.
length
;
for
(
i
=
0
;
i
<
len
;
i
++
)
s
.
push
(
String
.
fromCharCode
(
arr
[
i
]));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment