The dialog.showMessageBox method has been split into dialog.showMessageBox and dialog.showMessageBoxSync in Electron 6.0.0. This PR ensures that the sync variant is used in Electron >=6 without breaking compatibility with Electron <6.
I have no idea how to add tests for a change like this though, help is very much welcome.
The
dialog.showMessageBox
method has been split intodialog.showMessageBox
anddialog.showMessageBoxSync
in Electron 6.0.0. This PR ensures that the sync variant is used in Electron >=6 without breaking compatibility with Electron <6.I have no idea how to add tests for a change like this though, help is very much welcome.