main/second-instance: If logger isn't ready, skip further checks

This commit is contained in:
Scott Nonnenberg 2021-10-20 13:40:12 -07:00 committed by GitHub
parent 50c9b1bf7f
commit 2e9eaa855a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,6 +195,13 @@ if (!process.mas) {
showWindow();
}
if (!logger) {
console.log(
'second-instance: logger not initialized; skipping further checks'
);
return;
}
const incomingCaptchaHref = getIncomingCaptchaHref(argv);
if (incomingCaptchaHref) {
const { captcha } = parseCaptchaHref(incomingCaptchaHref, getLogger());