From d32d5f2337cb7558c46c7775122ff3bcffc5ff72 Mon Sep 17 00:00:00 2001 From: Oj Date: Thu, 24 Mar 2022 12:46:25 +0000 Subject: [PATCH] [Updater > v2] Minor source cleanup (rewriting) --- src/updater/updater.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/updater/updater.js b/src/updater/updater.js index 672bfca..3728c2a 100644 --- a/src/updater/updater.js +++ b/src/updater/updater.js @@ -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,