@@ -100,6 +101,30 @@ function allowsChild(parent, child) {
}
}
functionattachLogExportToWindow(platform):void{
(windowas any).downloadLogs=async ()=>{
constlogs=awaitplatform.logger.export();
if (!logs&&import.meta.env.DEV){
console.error(
"Dev mode is not currently configured to collect persistent logs! Change the 'development' flag passed to Platform constructor to false or run Chatterbox from a true build."
);
return;
}
constaccepted=confirm(
"Debug logs contain application usage data including your username, "+
"the IDs or aliases of the rooms or groups you have visited, "+
"the usernames of other users and the names of files you send. "+
"They do not contain messages. For more information, review our "+