How do I change the title on the download window?


#1
  • Electron version: 1.8.4

  • When the download begins, the URL will appear in the title.
    How can you change this?

this… code…

ipcMain.on('dowloadFiles', function (evt, args) {
  downloadItem(0, args);
});

function downloadItem(count, args) {
mainWindow
.webContents
.downloadURL("https://nodestory.com:55151/api/share/download?videoId=" + args);

  const listener = (e, item, webContents) => {
    if (count === 0) {

      item.on('updated', function (event, state) {
        if (state === 'interrupted') {
          log.info('Download is interrupted but can be resumed')
        } else if (state === 'progressing') {
          if (item.isPaused()) {
            log.warn('Download is paused')
          }
        }
      });
....

I need help … Thank you