Skip to content

Commit

Permalink
Fix enforceMacOSAppLocation crash (#29)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
kaatt and sindresorhus authored Apr 13, 2020
1 parent 0762520 commit fcdd328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/enforce-macos-app-location.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`,
Expand Down

0 comments on commit fcdd328

Please sign in to comment.