Detect startup after recent crashes

This commit is contained in:
Fedor Indutny 2022-01-11 12:02:46 -08:00 committed by GitHub
parent 02a732c511
commit 91f1b62bc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 650 additions and 101 deletions

View file

@ -8,6 +8,8 @@ import { contextBridge, ipcRenderer } from 'electron';
import { SignalContext } from '../context';
import { DebugLogWindow } from '../../components/DebugLogWindow';
import * as debugLog from '../../logging/debuglogs';
import { upload } from '../../logging/uploadDebugLog';
import * as logger from '../../logging/log';
contextBridge.exposeInMainWorld('SignalContext', {
...SignalContext,
@ -32,7 +34,11 @@ contextBridge.exposeInMainWorld('SignalContext', {
);
},
uploadLogs(logs: string) {
return debugLog.upload(logs, SignalContext.getVersion());
return upload({
content: logs,
appVersion: SignalContext.getVersion(),
logger,
});
},
}),
document.getElementById('app')