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
518c0fca
Commit
518c0fca
authored
Nov 15, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We can't not load the crypto libs, breaks r.js optimizer
parent
4a1eac06
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
22 deletions
+31
-22
converse.js
converse.js
+28
-19
converse.min.js
converse.min.js
+1
-1
index.html
index.html
+2
-2
No files found.
converse.js
View file @
518c0fca
...
@@ -12,6 +12,18 @@
...
@@ -12,6 +12,18 @@
console
=
{
log
:
function
()
{},
error
:
function
()
{}
};
console
=
{
log
:
function
()
{},
error
:
function
()
{}
};
}
}
if
(
typeof
define
===
'
function
'
&&
define
.
amd
)
{
if
(
typeof
define
===
'
function
'
&&
define
.
amd
)
{
var
on_load
=
function
(
CryptoJS
,
otr
)
{
// Use Mustache style syntax for variable interpolation
_
.
templateSettings
=
{
evaluate
:
/
\{\[([\s\S]
+
?)\]\}
/g
,
interpolate
:
/
\{\{([\s\S]
+
?)\}\}
/g
};
if
(
typeof
otr
!==
"
undefined
"
)
{
return
factory
(
jQuery
,
_
,
CryptoJS
,
otr
.
OTR
,
otr
.
DSA
,
console
);
}
else
{
return
factory
(
jQuery
,
_
,
undefined
,
undefined
,
undefined
,
console
);
}
};
var
dependencies
=
[
var
dependencies
=
[
"
crypto
"
,
"
crypto
"
,
"
otr
"
,
"
otr
"
,
...
@@ -24,28 +36,25 @@
...
@@ -24,28 +36,25 @@
"
strophe.vcard
"
,
"
strophe.vcard
"
,
"
strophe.disco
"
"
strophe.disco
"
];
];
try
{
if
((
typeof
crypto
===
'
undefined
'
)
||
define
(
"
converse
"
,
[
(
(
typeof
crypto
.
randomBytes
!==
'
function
'
)
&&
"
crypto
"
,
(
typeof
crypto
.
getRandomValues
!==
'
function
'
)
"
otr
"
,
))
{
"
locales
"
,
"
backbone.localStorage
"
,
"
jquery.tinysort
"
,
"
strophe
"
,
"
strophe.muc
"
,
"
strophe.roster
"
,
"
strophe.vcard
"
,
"
strophe.disco
"
],
on_load
);
}
catch
(
e
)
{
console
.
log
(
e
);
// Don't load crypto stuff if the browser doesn't have a CSRNG
// Don't load crypto stuff if the browser doesn't have a CSRNG
dependencies
.
splice
(
0
,
2
);
dependencies
.
splice
(
0
,
2
);
define
(
"
converse
"
,
dependencies
,
on_load
);
}
}
define
(
"
converse
"
,
dependencies
,
function
(
CryptoJS
,
otr
)
{
// Use Mustache style syntax for variable interpolation
_
.
templateSettings
=
{
evaluate
:
/
\{\[([\s\S]
+
?)\]\}
/g
,
interpolate
:
/
\{\{([\s\S]
+
?)\}\}
/g
};
if
(
typeof
otr
!==
"
undefined
"
)
{
return
factory
(
jQuery
,
_
,
CryptoJS
,
otr
.
OTR
,
otr
.
DSA
,
console
);
}
else
{
return
factory
(
jQuery
,
_
,
undefined
,
undefined
,
undefined
,
console
);
}
}
);
}
else
{
}
else
{
// Browser globals
// Browser globals
_
.
templateSettings
=
{
_
.
templateSettings
=
{
...
...
converse.min.js
View file @
518c0fca
This diff is collapsed.
Click to expand it.
index.html
View file @
518c0fca
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
<meta
name=
"description"
content=
"Converse.js: Open Source Browser-Based Instant Messaging"
/>
<meta
name=
"description"
content=
"Converse.js: Open Source Browser-Based Instant Messaging"
/>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"stylesheets/stylesheet.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"stylesheets/stylesheet.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"converse.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"converse.css"
>
<
script
data-main=
"main"
src=
"components/requirejs/require.js"
></script
>
<
!--<script data-main="main" src="components/requirejs/require.js"></script>--
>
<
!-- <script src="converse.min.js"></script>--
>
<
script
src=
"converse.min.js"
></script
>
<title>
Converse.js
</title>
<title>
Converse.js
</title>
</head>
</head>
...
...
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