Electron how to show message box dialog

const { dialog } = require('electron')

function showMsg(s) {
  const options = {
    title: 'MedDay',
    message: s,
    //icon: 'src/icon.png',
  };

  dialog.showMessageBox(null, options)
}

showMsg("Hellow")

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top