fixed "download logs" button

pull/458/head
isymchych 9 years ago
parent cb40ab5420
commit 24b24a62c4
  1. 3
      conference.js
  2. 1953
      libs/lib-jitsi-meet.js
  3. 8
      modules/UI/UI.js

@ -243,6 +243,9 @@ export default {
return this._room
&& this._room.myUserId();
},
getLogs () {
return room.getLogs();
},
_createRoom () {
room = connection.initJitsiConference(APP.conference.roomName,
this._getConferenceOptions());

File diff suppressed because it is too large Load Diff

@ -279,8 +279,12 @@ UI.start = function () {
$('#notice').css({display: 'block'});
}
$("#downloadlog").click(function (event) {
// dump(event.target);
// FIXME integrate logs
let logs = APP.conference.getLogs();
let data = encodeURIComponent(JSON.stringify(logs, null, ' '));
let elem = event.target.parentNode;
elem.download = 'meetlog.json';
elem.href = 'data:application/json;charset=utf-8,\n' + data;
});
Feedback.init();
} else {

Loading…
Cancel
Save