title: Changing the dialog box title in Electron
body: <p>I'm using react in electron and I have a delete button that prompts a confirmation message. I noticed that the confirmation box has the title &quot;electron.exe&quot; as shown here.</p>
  <p><a href="https://i.stack.imgur.com/6KIHW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6KIHW.jpg" alt="enter image description here" /></a></p>
  <p>And here is the code:</p>
  <pre><code> &lt;td style={{textAlign:'center' }}&gt;&lt;Link title=&quot;delete customer&quot;&gt;&lt;i className=&quot;material-icons&quot; style={{ fontSize: &quot;1.2em&quot;}} title=&quot;Delete&quot;
    onClick={(event) =&gt; {const confirmBox = window.confirm(&quot;Do you really want to delete this contact?&quot;)
   if (confirmBox === true) { handleDelete(event, record._id) }
   }}&gt; delete&lt;/i&gt;&lt;/Link&gt;&lt;/td&gt;
  </code></pre>
  <p>main.js</p>
  <pre><code>const {app, BrowserWindow,Menu, shell} = require('electron')
  const server = require('../../server.js')
  const isDev = require('electron-is-dev')
  
  process.env.NODE_ENV = &quot;development&quot;
  
  const isMac = process.platform === &quot;darwin&quot; ? true : false
  
  let mainWindow
  
  function createMainWindow (){
       mainWindow = new BrowserWindow({
          width:1366,
          height:768,
          show: false,
          backgroundColor:&quot;#263238&quot;
      })
  
      mainWindow.loadURL(isDev ? 'http://localhost:3000' : `file://${path.join(__dirname, '../build/index.html')}`)
  
  
      mainWindow.once('ready-to-show', () =&gt; {
          mainWindow.show();
          mainWindow.focus();
        });
  
      mainWindow.webContents.on('new-window', function(event, url){    
          event.preventDefault();  
          shell.openExternal(url);
      })
  }
  
  function createAboutWindow (){
      aboutWindow = new BrowserWindow({
         width:300,
         height:300,
         backgroundColor:&quot;black&quot;
        
     })
  
     aboutWindow.loadFile('http://localhost:3000/test')
  }
   
  
  app.on('ready', () =&gt; {
      createMainWindow()
      const mainMenu = Menu.buildFromTemplate(menu)
      Menu.setApplicationMenu(mainMenu)    
      mainWindow.on('ready', () =&gt; mainWindow = null)
  })
  
  const menu = [
      ...(isMac ? [{
          label: 'app.name',
          submenu:[
              {
                  label:'About',
                  click: createAboutWindow
              }
          ]}]:[]),
      {
          role:'fileMenu'
      },
      ...(!isMac ? [
          {
              label:'Help',
              submenu:[
                  {
                      label:'About',
                      click: createAboutWindow
                  }
              ]
          }
      ]:[]),
      ...(isDev ? [
          {
              label:'Developer',
              submenu:[
                  {role:'reload'},
                  {role:'forcereload'},
                  {role:'separator'},
                  {role:'toggledevtools'},
              ]
          }
      ]:[])
  ]
  
  app.on('window-all-closed', function () {
      if (isMac) app.quit()
    })
  
    app.whenReady().then(() =&gt; {
          app.on('activate', function () {
        if (BrowserWindow.getAllWindows().length === 0) createMainWindow()
      })
    })
  </code></pre>
  <p>How do I change the title in the confirmation box? Many thanks in advance and greatly appreciate any helps. Thanks again.</p>