From fcdd3282ad36978a9b9bc003c8ab8371907e9044 Mon Sep 17 00:00:00 2001 From: kaatt <10688522+kaatt@users.noreply.github.com> Date: Mon, 13 Apr 2020 13:27:44 +0530 Subject: [PATCH] Fix `enforceMacOSAppLocation` crash (#29) Co-authored-by: Sindre Sorhus --- source/enforce-macos-app-location.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/enforce-macos-app-location.js b/source/enforce-macos-app-location.js index 3b55146..33d12f2 100644 --- a/source/enforce-macos-app-location.js +++ b/source/enforce-macos-app-location.js @@ -13,7 +13,7 @@ module.exports = () => { const appName = 'name' in api.app ? api.app.name : api.app.getName(); - const clickedButtonIndex = api.dialog.showMessageBox({ + const clickedButtonIndex = api.dialog.showMessageBoxSync({ type: 'error', message: 'Move to Applications folder?', detail: `${appName} must live in the Applications folder to be able to run correctly.`,