old_contents: const { files, ...opts } = window.__args__
  
  if (!opts.interactive) {
    require('./console')
  }
  
  const { Mocha, helpers } = require('../mocha')
  const { ipcRenderer: ipc } = require('electron')
  
  // Expose Mocha
  window.mocha = Mocha
  
  try {
    opts.script.forEach((script) => {
      const tag = document.createElement('script')
      tag.src = script
      tag.async = false
      document.head.appendChild(tag)
    })
  } catch (error) {
    ipc.send('mocha-error', {
      message: error.message,
      stack: error.stack
    })
  }
  
  ipc.on('mocha-start', () => {
    try {
      helpers.runMocha(opts, files, (...args) => {
        ipc.send('mocha-done', ...args)
      })
    } catch ({ message, stack }) {
      ipc.send('mocha-error', { message, stack })
    }
  })
  
  // Request re-run on reload in --interactive mode
  ipc.send('mocha-ready-to-run')
  
new_contents: const { files, ...opts } = window.__args__
  
  if (!opts.interactive) {
    require('./console')
  }
  
  const { Mocha, helpers } = require('../mocha')
  const { ipcRenderer: ipc } = require('electron')
  
  // Expose Mocha
  window.mocha = Mocha
  
  try {
    if (opts.script) {
      opts.script.forEach((script) => {
        const tag = document.createElement('script')
        tag.src = script
        tag.async = false
        document.head.appendChild(tag)
      })
    }
  } catch (error) {
    ipc.send('mocha-error', {
      message: error.message,
      stack: error.stack
    })
  }
  
  ipc.on('mocha-start', () => {
    try {
      helpers.runMocha(opts, files, (...args) => {
        ipc.send('mocha-done', ...args)
      })
    } catch ({ message, stack }) {
      ipc.send('mocha-error', { message, stack })
    }
  })
  
  // Request re-run on reload in --interactive mode
  ipc.send('mocha-ready-to-run')
  
subject: Make --script optional