Uses npm packeges for socket.io and jsSHA.
This commit is contained in:
parent
fd7e8c9162
commit
7f1eb617c3
|
@ -11,8 +11,6 @@
|
|||
<meta itemprop="image" content="/images/jitsilogo.png"/>
|
||||
<script src="https://api.callstats.io/static/callstats.min.js"></script>
|
||||
<script src="libs/jquery-2.1.1.min.js"></script>
|
||||
<script src="https://cdn.socket.io/socket.io-1.2.0.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsSHA/1.5.0/sha.js"></script>
|
||||
<script src="config.js?v=12"></script><!-- adapt to your needs, i.e. set hosts and bosh path -->
|
||||
<script src="libs/strophe/strophe.min.js?v=2"></script>
|
||||
<script src="libs/strophe/strophe.disco.min.js?v=1"></script>
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
/* global config, $, APP, Strophe, callstats */
|
||||
var jsSHA = require('jssha');
|
||||
var io = require('socket.io-client');
|
||||
var callStats = null;
|
||||
|
||||
function initCallback (err, msg) {
|
||||
|
@ -11,7 +13,7 @@ var CallStats = {
|
|||
if(!config.callStatsID || !config.callStatsSecret || callStats !== null)
|
||||
return;
|
||||
|
||||
callStats = new callstats($,io,jsSHA);
|
||||
callStats = new callstats($, io, jsSHA);
|
||||
|
||||
this.session = jingleSession;
|
||||
this.peerconnection = jingleSession.peerconnection.peerconnection;
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
"sdp-transform": "1.4.0",
|
||||
"sdp-simulcast": "0.1.0",
|
||||
"async": "0.9.0",
|
||||
"retry": "0.6.1"
|
||||
"retry": "0.6.1",
|
||||
"jssha": "1.5.0",
|
||||
"socket.io-client": "1.3.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue