Skip to content

Commit 629de87

Browse files
committed
fix(updater): check only when writable
1 parent 3bb4b2f commit 629de87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/updater/src/main/updater.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { app, autoUpdater } from 'electron'
44

55
async function checkForUpdates() {
66
try {
7-
await fs.promises.access(app.getPath('exe'))
7+
await fs.promises.access(app.getPath('exe'), fs.constants.W_OK)
88
autoUpdater.checkForUpdates()
99
} catch {
1010
// ignore error

0 commit comments

Comments
 (0)