Fix clear all data
This commit is contained in:
parent
d4e2911450
commit
9dc5214db7
1 changed files with 5 additions and 0 deletions
|
@ -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}`
|
||||
|
|
Loading…
Reference in a new issue