mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 13:40:47 +00:00
Fix clear all data
This commit is contained in:
@@ -343,6 +343,11 @@ async function startInRendererProcess(isTesting = false): Promise<void> {
|
||||
}
|
||||
|
||||
async function goBackToMainProcess(): Promise<void> {
|
||||
if (state === RendererState.InMain) {
|
||||
log.info('goBackToMainProcess: Already in the main process');
|
||||
return;
|
||||
}
|
||||
|
||||
strictAssert(
|
||||
state === RendererState.InRenderer,
|
||||
`goBackToMainProcess: expected ${state} to be ${RendererState.InRenderer}`
|
||||
|
||||
Reference in New Issue
Block a user