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