[Updater > v2] Minor source cleanup (rewriting)

This commit is contained in:
Ducko 2022-03-24 12:46:25 +00:00
parent fe52de3e51
commit d32d5f2337

View file

@ -165,7 +165,7 @@ class Updater extends EventEmitter {
const hostExePath = join(hostPath, basename(process.execPath));
if (resolve(hostExePath) != resolve(process.execPath) && !(options === null || options === void 0 ? void 0 : options.allowObsoleteHost)) {
if (resolve(hostExePath) != resolve(process.execPath) && !options?.allowObsoleteHost) {
app.once('will-quit', () => {
spawn(hostExePath, [], {
detached: true,