fixed "download logs" button
This commit is contained in:
parent
cb40ab5420
commit
24b24a62c4
|
@ -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…
Reference in New Issue