fixed "download logs" button

This commit is contained in:
isymchych 2016-01-14 17:35:37 +02:00
parent cb40ab5420
commit 24b24a62c4
3 changed files with 875 additions and 515 deletions

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -279,8 +279,12 @@ UI.start = function () {
$('#notice').css({display: 'block'}); $('#notice').css({display: 'block'});
} }
$("#downloadlog").click(function (event) { $("#downloadlog").click(function (event) {
// dump(event.target); let logs = APP.conference.getLogs();
// FIXME integrate logs 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(); Feedback.init();
} else { } else {