Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
d1d896a3
Commit
d1d896a3
authored
Nov 16, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HAS_CRYPTO was actually checking for the opposite
parent
774f0119
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
converse.js
converse.js
+3
-3
converse.min.js
converse.min.js
+1
-1
src/bigint.js
src/bigint.js
+3
-3
No files found.
converse.js
View file @
d1d896a3
...
@@ -57,9 +57,9 @@
...
@@ -57,9 +57,9 @@
var
KEY
=
{
var
KEY
=
{
ENTER
:
13
ENTER
:
13
};
};
var
HAS_CSPRNG
=
((
typeof
crypto
===
'
undefined
'
)
||
(
var
HAS_CSPRNG
=
((
typeof
crypto
!==
'
undefined
'
)
&&
(
typeof
crypto
.
randomBytes
!==
'
function
'
)
&&
(
(
typeof
crypto
.
randomBytes
===
'
function
'
)
||
(
typeof
crypto
.
getRandomValues
!
==
'
function
'
)
(
typeof
crypto
.
getRandomValues
=
==
'
function
'
)
));
));
var
HAS_CRYPTO
=
HAS_CSPRNG
&&
(
var
HAS_CRYPTO
=
HAS_CSPRNG
&&
(
(
typeof
CryptoJS
!==
"
undefined
"
)
&&
(
typeof
CryptoJS
!==
"
undefined
"
)
&&
...
...
converse.min.js
View file @
d1d896a3
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/bigint.js
View file @
d1d896a3
...
@@ -1666,9 +1666,9 @@
...
@@ -1666,9 +1666,9 @@
}
}
;(
function
seed
()
{
;(
function
seed
()
{
var
HAS_CSPRNG
=
((
typeof
crypto
===
'
undefined
'
)
||
var
HAS_CSPRNG
=
((
typeof
crypto
!==
'
undefined
'
)
&&
((
typeof
crypto
.
randomBytes
!==
'
function
'
)
&&
((
typeof
crypto
.
randomBytes
===
'
function
'
)
||
(
typeof
crypto
.
getRandomValues
!
==
'
function
'
)
(
typeof
crypto
.
getRandomValues
=
==
'
function
'
)
));
));
if
(
!
HAS_CSPRNG
)
{
if
(
!
HAS_CSPRNG
)
{
return
;
return
;
...
...
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